Skip to content

Instantly share code, notes, and snippets.

@merishnaSuwal
Created November 9, 2020 03:49
Show Gist options
  • Save merishnaSuwal/3d87449f621abe10d187a1256bf4dfe4 to your computer and use it in GitHub Desktop.
Save merishnaSuwal/3d87449f621abe10d187a1256bf4dfe4 to your computer and use it in GitHub Desktop.
# summarize the result and plot the training and test loss
plt.plot(result.history['loss'])
plt.plot(result.history['val_loss'])
# Set the parameters
plt.title('Deep learning model loss')
plt.ylabel('Loss')
plt.xlabel('Epochs')
plt.legend(['train', 'test'], loc='upper right')
# Display the plots
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment