Guest User

Untitled

a guest
Oct 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import pickle
  2. import matplotlib
  3. matplotlib.use('agg')
  4. import matplotlib.pyplot as plt
  5.  
  6. #hist = pickle.load(open("trainHistoryDict_0-5-7", 'rb'))
  7. hist = pickle.load(open("trainHistoryDict_9", 'rb'))
  8. print hist.keys()
  9. plt.plot(hist['loss'])
  10. plt.plot(hist['val_loss'])
  11. plt.title('model loss')
  12. plt.ylabel('loss')
  13. plt.xlabel('epoch')
  14. plt.legend(['train', 'test'], loc='upper left')
  15. plt.savefig('foo9.png')
  16. ~
Add Comment
Please, Sign In to add comment