Skip to content

Instantly share code, notes, and snippets.

@MohdShariqMalik
Created August 27, 2021 15:59
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 MohdShariqMalik/c5eca3847e4b5c7e88c51af72dee6602 to your computer and use it in GitHub Desktop.
Save MohdShariqMalik/c5eca3847e4b5c7e88c51af72dee6602 to your computer and use it in GitHub Desktop.
loss_train = history.history['loss']
loss_val = history.history['val_loss']
plt.plot(loss_train, 'g', label = 'training loss')
plt.plot(loss_val, 'b', label = 'validation loss')
plt.title('training loss and validation loss')
plt.xlabel('epochs')
plt.ylabel('loss')
plt.legend()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment