Skip to content

Instantly share code, notes, and snippets.

@risenW
Created July 17, 2018 13:39
Show Gist options
  • Save risenW/413fbfd4328da604de7d71e835014637 to your computer and use it in GitHub Desktop.
Save risenW/413fbfd4328da604de7d71e835014637 to your computer and use it in GitHub Desktop.
Code of plot: Stochastic vs batch training.
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