Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hengluchang/visualizing_momentum

Visualizing Gradient Descent with Momentum in Python
https://github.com/hengluchang/visualizing_momentum

deep-learning gradient-descent machienlearning momentum optimization visualization

Last synced: about 2 months ago
JSON representation

Visualizing Gradient Descent with Momentum in Python

Awesome Lists containing this project

README

        

# visualizing_momentum
Visualizing Gradient Descent with Momentum in Python, check out the blog post [here](https://medium.com/@hengluchang/visualizing-gradient-descent-with-momentum-in-python-7ef904c8a847)!

# Pre-reqs
Python 3.6

# Libraries
- matplotlib
- numpy

# How to run
`python3 loss_surface.py` to generate loss surface figure.

`python3 momentum.py` to generate weight trajectories and velocity-iteration plots.

# References
- [An overview of gradient descent algorithms](http://ruder.io/optimizing-gradient-descent/index.html#momentum)
- [On the importance of initialization and momentum in deep learning](http://www.cs.toronto.edu/~fritz/absps/momentum.pdf)
- [Why momentum really works](https://distill.pub/2017/momentum/)
- [Momentum and learning rate adaptation](https://www.willamette.edu/~gorr/classes/cs449/momrate.html)