Skip to content

Instantly share code, notes, and snippets.

@ferrygun
Created Jun 11, 2020
Embed
What would you like to do?
import matplotlib.pyplot as plt
def plot_graphs(history, string):
plt.plot(history.history[string])
plt.plot(history.history['val_'+string])
plt.xlabel("Epochs")
plt.ylabel(string)
plt.legend([string, 'val_'+string])
plt.show()
plot_graphs(history, "accuracy")
plot_graphs(history, "loss")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment