Skip to content

Instantly share code, notes, and snippets.

@sgsg704
Created September 9, 2021 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgsg704/b921cb160e1e738c14d4812788bc9ae8 to your computer and use it in GitHub Desktop.
Save sgsg704/b921cb160e1e738c14d4812788bc9ae8 to your computer and use it in GitHub Desktop.
history_df = pd.DataFrame(history.history)
plt.plot(history_df.loc[:, ['loss']], "#6daa9f", label='Training loss')
plt.plot(history_df.loc[:, ['val_loss']],"#774571", label='Validation loss')
plt.title('Training and Validation loss')
plt.xlabel('Epochs')
plt.ylabel('Loss')
plt.legend(loc="best")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment