Reputation: 41
I have trained my model and saved it. For plotting results against that model I loaded the model and now I want to extract history from that model.
saved model
model = load_model('model_pre_ep3_valloss0.360.h5')
How do I extract accuracy, loss etc plot from there?
Upvotes: 2
Views: 2361
Reputation: 56377
That information is not saved a Keras HDF5 model file, so if you did not save it in another file, it is effectively lost.
One simple way to save the loss/accuracy history is to use the CSVLogger
callback, more information in the keras docs.
Upvotes: 4