Last active
March 9, 2020 05:18
-
-
Save lylayang/a7c4d8a49b40787f7b2f7c9d77ed1282 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
def model_loss(history): | |
plt.figure(figsize=(8,4)) | |
plt.plot(history.history['loss'], label='Train Loss') | |
plt.plot(history.history['val_loss'], label='Test Loss') | |
plt.title('model loss') | |
plt.ylabel('loss') | |
plt.xlabel('epochs') | |
plt.legend(loc='upper right') | |
plt.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment