In Keras, we can return the output of model.fit to a history as follows:
model.fit
history = model.fit(X_train, y_train, batch_size
The easiest way:
Saving: np.save('my_history.npy',history.history) Loading: history=np.load('my_history.npy',allow_pickle='TRUE').item()
Saving:
np.save('my_history.npy',history.history)
Loading:
history=np.load('my_history.npy',allow_pickle='TRUE').item()
Then history is a dictionary and you can retrieve all desirable values using the keys.