Skip to main content

Extensible, parallel implementations of t-SNE

Project description

Build Status Documentation Status Codacy Badge License Badge

openTSNE is a modular Python implementation of t-Distributed Stochasitc Neighbor Embedding (t-SNE), a popular dimensionality-reduction algorithm for visualizing high-dimensional data sets. openTSNE incorporates the latest improvements to the t-SNE algorithm, including the ability to add new data points to existing embeddings, massive speed improvements, enabling t-SNE to scale to millions of data points and various tricks to improve global alignment of the resulting visualizations.

Macosko 2015 mouse retina t-SNE embedding

A visualization of 44,808 single cell transcriptomes obtained from the mouse retina [5] embedded using the multiscale kernel trick to better preserve the global aligment of the clusters.

Installation

openTSNE requires Python 3.6 or higher in order to run.

Conda

openTSNE can be easily installed from conda-forge with

conda install --channel conda-forge opentsne

Conda package

PyPi

openTSNE is also available through pip and can be installed with

pip install opentsne

PyPi package

Note that openTSNE requires a C/C++ compiler. numpy must also be installed.

In order for openTSNE to utilize multiple threads, the C/C++ compiler must also implement OpenMP. In practice, almost all compilers implement this with the exception of older version of clang on OSX systems.

To squeeze the most out of openTSNE, you may also consider installing FFTW3 prior to installation. FFTW3 implements the Fast Fourier Transform, which is heavily used in openTSNE. If FFTW3 is not available, openTSNE will use numpy’s implementation of the FFT, which is slightly slower than FFTW. The difference is only noticeable with large data sets containing millions of data points.

A hello world example

Getting started with openTSNE is very simple. First, we’ll load up some data using scikit-learn

from sklearn import datasets

iris = datasets.load_iris()
x, y = iris["data"], iris["target"]

then, we’ll import and run

from openTSNE import TSNE

embedding = TSNE().fit(x)

References

Project details


Download files

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

Source Distribution

openTSNE-0.3.9.tar.gz (201.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

openTSNE-0.3.9-cp37-cp37m-win_amd64.whl (366.1 kB view details)

Uploaded CPython 3.7mWindows x86-64

openTSNE-0.3.9-cp37-cp37m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7m

openTSNE-0.3.9-cp37-cp37m-macosx_10_13_x86_64.whl (388.8 kB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

openTSNE-0.3.9-cp36-cp36m-win_amd64.whl (366.1 kB view details)

Uploaded CPython 3.6mWindows x86-64

openTSNE-0.3.9-cp36-cp36m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.6m

openTSNE-0.3.9-cp36-cp36m-macosx_10_13_x86_64.whl (389.7 kB view details)

Uploaded CPython 3.6mmacOS 10.13+ x86-64

File details

Details for the file openTSNE-0.3.9.tar.gz.

File metadata

  • Download URL: openTSNE-0.3.9.tar.gz
  • Upload date:
  • Size: 201.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12

File hashes

Hashes for openTSNE-0.3.9.tar.gz
Algorithm Hash digest
SHA256 c16eba3d9a490a22555f93a2994fef622d0f0c35d60e533d7ce9559a26b0483d
MD5 eb2d94b4f07660840f88406e31ce3a18
BLAKE2b-256 e3b6040a2642dcc1179c3a8a19970f9734af95de422b21fb032d1ed496b7bb54

See more details on using hashes here.

File details

Details for the file openTSNE-0.3.9-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: openTSNE-0.3.9-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 366.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12

File hashes

Hashes for openTSNE-0.3.9-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3f0a5fa3f7a0b47f6e9ac0efe1dd16640d258dcb8d168a6674b2d65ff5094cfe
MD5 f8c2e183ec0373a9b8809bea3b1c6258
BLAKE2b-256 d6711f0095735f25b2abcea4a5d214b4b1f92c27573129d612938248520fbc42

See more details on using hashes here.

File details

Details for the file openTSNE-0.3.9-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: openTSNE-0.3.9-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12

File hashes

Hashes for openTSNE-0.3.9-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 107349412f65e01bcc9ad47954c7a0d42f3c52f8c92e4c105af76c581e9ac1eb
MD5 6e157d109b7055079d03e715bfaf5ae3
BLAKE2b-256 19ef98759fe7a7786fb7407dfa58747d5afc18ba630b7069ad9f31e067c6bb44

See more details on using hashes here.

File details

Details for the file openTSNE-0.3.9-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: openTSNE-0.3.9-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 388.8 kB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12

File hashes

Hashes for openTSNE-0.3.9-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e03fe77767766d69d2ef77742a14e7891acc8544400adea9e14714c8e0b31ed7
MD5 e53f0214c4c273ea8ceda7ca5129b125
BLAKE2b-256 c3044e8c3a432b0ba90a5bc6ab3ad3d5c3eabba541ae64e2d0ab3101d5d18e04

See more details on using hashes here.

File details

Details for the file openTSNE-0.3.9-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: openTSNE-0.3.9-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 366.1 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12

File hashes

Hashes for openTSNE-0.3.9-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 237962d907842a07ae07921b7d40429b961e77b084c8636631bd13a6675d7607
MD5 302dfa52d3f8cb8e4b1a7f8e25129869
BLAKE2b-256 3cda5d72624d8186e004e94db30ccd2b368be5e8407fb8c747428c32278e3ac6

See more details on using hashes here.

File details

Details for the file openTSNE-0.3.9-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: openTSNE-0.3.9-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12

File hashes

Hashes for openTSNE-0.3.9-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1101df99cc3dc30bdca04d3957531e5b12bac66722187b35a7e9285d08c51fc5
MD5 15c1f9516058d793e70010d567ab52e6
BLAKE2b-256 9dcd0ac3133492dc5ac1c6386413797a276531273f012d21fcd30eb2a7936a08

See more details on using hashes here.

File details

Details for the file openTSNE-0.3.9-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: openTSNE-0.3.9-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 389.7 kB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12

File hashes

Hashes for openTSNE-0.3.9-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c711fabef4332ebb391fa4dd7cfe09269660a21899cb1fa838301a56a49586ba
MD5 67d2a5248dc253593a8f9b974d11344f
BLAKE2b-256 b01dbe5db9226da7e734aed14b5e9ea69d421da0fbf60da20493609b22e581c3

See more details on using hashes here.

Supported by

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