Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Algorithms

Barnes-Hut-SNE

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

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

Installation

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++

Usage

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.

Examples

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.

Files for tsne-mp, version 0.1.13
Filename, size File type Python version Upload date Hashes
Filename, size tsne_mp-0.1.13-cp35-cp35m-macosx_10_6_intel.whl (242.3 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size tsne_mp-0.1.13-cp35-cp35m-manylinux1_x86_64.whl (166.9 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size tsne_mp-0.1.13-cp35-cp35m-win_amd64.whl (101.2 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size tsne_mp-0.1.13-cp36-cp36m-macosx_10_9_x86_64.whl (133.9 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size tsne_mp-0.1.13-cp36-cp36m-manylinux1_x86_64.whl (167.8 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size tsne_mp-0.1.13-cp36-cp36m-win_amd64.whl (104.5 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size tsne_mp-0.1.13-cp37-cp37m-macosx_10_9_x86_64.whl (133.6 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size tsne_mp-0.1.13-cp37-cp37m-manylinux1_x86_64.whl (167.7 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size tsne_mp-0.1.13-cp37-cp37m-win_amd64.whl (103.8 kB) File type Wheel Python version cp37 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page