Early stopping and history callbacks

In the preceding cell, we used a callback known as early stopping. This callback allows us to monitor a specific training metric. Our choices are between our accuracy or loss on the training set or on the validation set, which are all stored in a dictionary pertaining to our model's history:

history_dict = network_metadata.history
history_dict.keys()
dict_keys(['val_loss','val_acc','loss','acc'])