I am experimenting a little bit with AI and I have a model where I want to train it in batches which are chosen previously and have irregular shapes.
Heres what I have:
model = create_model(units_vector, (inp_shape,), lr)
for i in range(epochs):
for batch in batches:
model.fit(batch[0], batch[1], epochs=1, verbose=0)
The function create_model defines a simple model (only dense layers) and compiles it with mse and Adam.
batches is a list of tuples where the inputs and outputs are stored (in numpy arrays).
I would want a way to print at the end of each epoch the loss experimented by the model. Or some way to check if the model is learning something or not (without having to print a message at each batch which is too much spam).