Guest User

Untitled

a guest
Nov 24th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. import numpy as np
  3. import cPickle
  4.  
  5. stuff = cPickle.load( open( "thing.pkl", "rb" ) )
  6.  
  7. fig = plt.figure()
  8.  
  9. ax1 = fig.add_subplot(121)
  10. ax1.set_title('Entire Grid Search')
  11. ax1.set_xlabel('Alpha [0.0,1.0,0.05]')
  12. ax1.set_ylabel('Discount [0.0,1.0,0.05]')
  13. ax1.set_yticks([], [])
  14. ax1.set_xticks([], [])
  15. ax1.imshow(stuff, cmap='hot', interpolation='nearest')
  16.  
  17. ax2 = fig.add_subplot(122)
  18. ax2.set_title('Zoomed In to [5:,5:]')
  19. ax2.set_yticks([], [])
  20. ax2.set_xticks([], [])
  21. ax2.set_xlabel('Alpha [0.0,1.0,0.05]')
  22. ax2.set_ylabel('Discount [0.0,1.0,0.05]')
  23. ax2.imshow(stuff[5:,5:], cmap='hot', interpolation='nearest')
  24.  
  25. plt.show()
Add Comment
Please, Sign In to add comment