In a jupyter notebook, I'm doing a training in keras with a line similar to
history = model.fit(....., epoch=100)
When I see that var_loss converge I break manually the execution, and obviously history is not returned.
Is there a way to retrieve it? A member of model, or method, or a way to get the history object or its members?
@Mquinteiro Try using a callback: https://keras.io/callbacks/. You could set the callback to terminate when the model is no longer improving (keras.callbacks.EarlyStopping) and then access the best model (save_best_only = True), or you could have the callback save checkpoints after each epoch (keras.callbacks.ModelCheckpoint) which you can access after manually stopping the execution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With