I\'m training a deep neural net using Keras and looking for a way to save and later load the history object which is of keras.callbacks.History
type. Here\'s the se
You can use Pandas to save the history object as a CSV file.
import pandas as pd
pd.DataFrame.from_dict(history_model_1.history).to_csv('history.csv',index=False)
The JSON approach results in a TypeError: Object of type 'float32' is not JSON serializable
. The reason for this is that the corresponding values in the history dictionary are NumPy arrays.