2017-11-17 15:25:53 +08:00
2017-11-17 13:59:31 +08:00
2017-11-15 16:05:29 +08:00
2017-11-17 14:01:25 +08:00
2017-11-17 15:25:53 +08:00
2017-11-17 12:37:46 +08:00

This project generates animations of pytorch optimizers solving toy problems. Examples Below.

Some nice animations were posted a few years ago by Alex Radford but didn't include the Adam optimizer or landscapes with noise. Louis Tiao blogged about how to make the visualizations. The pytorch unit tests show how to run the optimizers on test functions. I pulled these together and shared the result at https://github.com/wassname/viz_torch_optim. Please make some better animations and share them.

Examples

Please note each optimizer has a differen't learning rate. This is because simpler optimizers perform better on low dimensional problems. So, with a constant learning rate, the simpler SGD optimizer races while Adam crawls along. In that case we would be able to see SGD's path or Adam's movement. So I used differen't learning rates for each optimizer in order to show them on the same video.

With cyclic annealing:

Constant learning rate

Beales function

Six humped camel function

Rosenbrock function

Usage:

  • git clone https://github.com/wassname/viz_torch_optim
  • jupyter notebook
  • open main.ipynb
  • install any missing dependencies with pip
S
Description
Videos of deep learning optimizers moving on 3D problem-landscapes
Readme
22 MiB
Languages
Jupyter Notebook 100%