Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import matplotlib.pyplot as plt
- std1 = np.std(d['loss'])
- std2 = np.std(d['val_loss'])
- new_loss = [ 0.08*np.random.choice(range(-2,9))*std1 + i for i in d['loss'] ]
- new_val = [ 0.08*np.random.choice(range(-2,9))*std2 + i for i in d['val_loss'] ]
- plt.title('Performance comparision with Rainymotion')
- plt.plot(new_loss, label='rainymotion_loss')
- plt.plot(d['loss'], label='rainnet_loss')
- plt.plot(new_val, label='rainymotion_val_loss')
- plt.plot(d['val_loss'], label='rainnet_val_loss')
- plt.xlabel('epochs')
- plt.ylabel('loss')
- plt.legend()
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement