Skip to content

Instantly share code, notes, and snippets.

@kevakba
Created September 1, 2020 13:34
Show Gist options
  • Save kevakba/9fa98bc1a35d05982a269966a9bf700a to your computer and use it in GitHub Desktop.
Save kevakba/9fa98bc1a35d05982a269966a9bf700a to your computer and use it in GitHub Desktop.
acc = history.history['accuracy']
val_acc = history.history['val_accuracy']
loss = history.history['loss']
val_loss = history.history['val_loss']
epochs_range = range(epochs)
plt.plot(epochs_range, acc, label='Training Accuracy')
plt.plot(epochs_range, val_acc, label='Validation Accuracy')
plt.legend(loc='lower right')
plt.title('Training and Validation Accuracy')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment