Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. fig = plt.figure(figsize=(16,4))
  2. ax = fig.add_subplot(121)
  3. ax.plot(history.history["val_loss"])
  4. ax.plot(history2.history["val_loss"])
  5. ax.set_title("validation loss")
  6. ax.set_xlabel("epochs")
  7.  
  8. ax2 = fig.add_subplot(122)
  9. ax2.plot(history.history["val_acc"])
  10. ax2.plot(history2.history["val_acc"])
  11. ax2.set_title("validation accuracy")
  12. ax2.set_xlabel("epochs")
  13. ax2.set_ylim(0, 1)
  14.  
  15. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement