Check out this tSNE animation. It runs slowly because heroku has no gpu support. If you run the code on a machine with pytorch and a gpu, it is much more satisfying.
This was a dual-purpose project:
- To port tSNE to pytorch
- To write code for animations in bokeh using the various examples in the bokeh documentation on asynchronously updating plots.
The code
is based on the Python implementation given on van der Maaten’s web page.
Here is an screencast of the app running with gpu support: