Created
July 17, 2018 13:39
-
-
Save risenW/413fbfd4328da604de7d71e835014637 to your computer and use it in GitHub Desktop.
Code of plot: Stochastic vs batch training.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plt.plot(range(0, 100, 5), loss_batch, 'r--', label='Batch Loss') | |
plt.plot(range(0, 100, 5), loss_stochastic, 'b-', label='Stochastic Loss') | |
plt.legend(loc='upper right') | |
plt.title('Batch training vs Stochastic training') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment