Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 25, 2020 06:27
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 amankharwal/8f5d65e95e45be572fbc5db153ee21db to your computer and use it in GitHub Desktop.
Save amankharwal/8f5d65e95e45be572fbc5db153ee21db to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
acc = hist.history['accuracy']
val_acc = hist.history['val_accuracy']
loss = hist.history['loss']
val_loss = hist.history['val_loss']
epochs = range(len(acc))
plt.plot(epochs, acc, 'r', label='Training accuracy')
plt.plot(epochs, val_acc, 'b', label='Validation accuracy')
plt.title('Training and validation accuracy')
plt.legend(loc=0)
plt.figure()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment