Skip to content

Instantly share code, notes, and snippets.

@john-adeojo
Created January 22, 2021 00:34
Show Gist options
  • Save john-adeojo/0515ff1d5cf6f993b73b7afc9155721b to your computer and use it in GitHub Desktop.
Save john-adeojo/0515ff1d5cf6f993b73b7afc9155721b to your computer and use it in GitHub Desktop.
Plot sequential NN
# Plot the training history for the network
def plot_performance (history, save):
pd.DataFrame(history.history).plot(figsize=(8, 5))
plt.grid(True)
plt.gca().set_ylim(0, 1) # Sets the verticle axis range from 0 to 1
plt.show()
plt.savefig(save)
plot_performance (history, 'model1')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment