Visualizing Gradient Descent with Momentum in Python, check out the blog post here!
Python 3.6
- matplotlib
- numpy
python3 loss_surface.py
to generate loss surface figure.
python3 momentum.py
to generate weight trajectories and velocity-iteration plots.