Skip to main content

High Performance TSNE implementations for python

Project description

PyPI - Version PyPI - Wheel Python 3.6 Python 3.6 Python 3.6

Python TSNE implementation utilizing openmp for performance

This is based on the 10XDev/tsne fork of L.J.P. van der Maaten BH-tSNE implementation.

It has fixes to allow this to run in Python 3 and performance has been significantly increased with OpenMP parallelism. (see: tsne-perf-test)

Note: While Scikit-learn v0.17 has a tsne implementation, this implementation performs significantly faster than scikit-learn's. If you need speed, use this.



A python (cython) wrapper for Barnes-Hut-SNE aka fast-tsne.

We forked 10XDev's implementation and openmp enabled the code.


This library has been added to pypi as tsne-mp

pip install tsne-mp

It requires openmp support.

  • OSX - brew install libomp
  • linux - 'sudo apt-get install libgomp1'
  • Windows - Included with Visual Studio C++


Basic usage:

from tsne import bh_sne
X_2d = bh_sne(X)

Or, the wheels also contain an executable that can be used from the command-line as described in the original project.


More Information

See Barnes-Hut-SNE (2013), L.J.P. van der Maaten. It is available on arxiv.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

tsne_mp-0.1.13-cp37-cp37m-win_amd64.whl (103.8 kB view hashes)

Uploaded cp37

tsne_mp-0.1.13-cp36-cp36m-win_amd64.whl (104.5 kB view hashes)

Uploaded cp36

tsne_mp-0.1.13-cp35-cp35m-win_amd64.whl (101.2 kB view hashes)

Uploaded cp35

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page