Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. # summarize history for accuracy
  2. plt.plot(history.history['acc'])
  3. plt.plot(history.history['val_acc'])
  4. plt.title('Model accuracy')
  5. plt.ylabel('Accuracy')
  6. plt.xlabel('Epoch')
  7. plt.legend(['Train', 'Validate'], loc='upper left')
  8. plt.show()
  9. # summarize history for loss
  10. plt.plot(history.history['loss'])
  11. plt.plot(history.history['val_loss'])
  12. plt.title('Model loss')
  13. plt.ylabel('Loss')
  14. plt.xlabel('Epoch')
  15. plt.legend(['Train', 'Validate'], loc='upper left')
  16. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement