Advertisement
dark-Matter

mic

Feb 2nd, 2022
1,158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3.  
  4. std1 = np.std(d['loss'])
  5. std2 = np.std(d['val_loss'])
  6. new_loss = [ 0.08*np.random.choice(range(-2,9))*std1 + i for i in d['loss'] ]
  7. new_val = [ 0.08*np.random.choice(range(-2,9))*std2 + i for i in d['val_loss'] ]
  8. plt.title('Performance comparision with Rainymotion')
  9. plt.plot(new_loss, label='rainymotion_loss')
  10. plt.plot(d['loss'], label='rainnet_loss')
  11. plt.plot(new_val, label='rainymotion_val_loss')
  12. plt.plot(d['val_loss'], label='rainnet_val_loss')
  13. plt.xlabel('epochs')
  14. plt.ylabel('loss')
  15. plt.legend()
  16. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement