Created
July 8, 2019 20:01
-
-
Save ajinkyajawale14499/14769e07b35d581343ab8ba856f610af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
acc = history.history['accuracy'] | |
val_acc = history.history['val_accuracy'] | |
loss = history.history['loss'] | |
val_loss = history.history['val_loss'] | |
plt.figure(figsize=(8, 8)) | |
plt.subplot(2, 1, 1) | |
plt.plot(acc, label='Training Accuracy') | |
plt.plot(val_acc, label='Validation Accuracy') | |
plt.legend(loc='lower right') | |
plt.ylabel('Accuracy') | |
plt.ylim([min(plt.ylim()),1]) | |
plt.title('Training and Validation Accuracy') | |
plt.subplot(2, 1, 2) | |
plt.plot(loss, label='Training Loss') | |
plt.plot(val_loss, label='Validation Loss') | |
plt.legend(loc='upper right') | |
plt.ylabel('Cross Entropy') | |
plt.ylim([0,1.0]) | |
plt.title('Training and Validation Loss') | |
plt.xlabel('epoch') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment