Skip to content

Instantly share code, notes, and snippets.

@kamal2230

kamal2230/mc8.py Secret

Created October 11, 2020 07:10
Show Gist options
  • Save kamal2230/577caac6127f6f44c5ce5c0a8f79e927 to your computer and use it in GitHub Desktop.
Save kamal2230/577caac6127f6f44c5ce5c0a8f79e927 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(len(acc))
plt.figure(figsize=(7,7))
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()
plt.figure(figsize=(7,7))
plt.plot(epochs, loss, 'r', label='Training Loss')
plt.plot(epochs, val_loss, 'b', label='Validation Loss')
plt.title('Training and validation loss')
plt.legend()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment