Created
January 22, 2021 00:34
-
-
Save john-adeojo/0515ff1d5cf6f993b73b7afc9155721b to your computer and use it in GitHub Desktop.
Plot sequential NN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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