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)

Citation

If you make use of openTSNE for your work we would appreciate it if you would cite the paper

@article {Poli{\v c}ar731877,
    author = {Poli{\v c}ar, Pavlin G. and Stra{\v z}ar, Martin and Zupan, Bla{\v z}},
    title = {openTSNE: a modular Python library for t-SNE dimensionality reduction and embedding},
    year = {2019},
    doi = {10.1101/731877},
    publisher = {Cold Spring Harbor Laboratory},
    URL = {https://www.biorxiv.org/content/early/2019/08/13/731877},
    eprint = {https://www.biorxiv.org/content/early/2019/08/13/731877.full.pdf},
    journal = {bioRxiv}
}

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.10.tar.gz (834.1 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.10-cp37-cp37m-win_amd64.whl (366.3 kB view details)

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7m

openTSNE-0.3.10-cp37-cp37m-macosx_10_13_x86_64.whl (389.0 kB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

openTSNE-0.3.10-cp36-cp36m-win_amd64.whl (366.4 kB view details)

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6m

openTSNE-0.3.10-cp36-cp36m-macosx_10_13_x86_64.whl (390.0 kB view details)

Uploaded CPython 3.6mmacOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: openTSNE-0.3.10.tar.gz
  • Upload date:
  • Size: 834.1 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.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12

File hashes

Hashes for openTSNE-0.3.10.tar.gz
Algorithm Hash digest
SHA256 9143ed7cd5cda32e7d225a846c968dcb0d9467d00e7a01bba10acf916bdab35e
MD5 10228fdf2da60e3a9642e9a0a347927a
BLAKE2b-256 49d78737dd557b4acf1e4f0f241dfb41435461c4b6ec848fa309117826918aea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openTSNE-0.3.10-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 366.3 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.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12

File hashes

Hashes for openTSNE-0.3.10-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 33256e5d7a6d580c7e448b58be65d42d35b4ea383d96a142a3b16bbfe5ad7ee6
MD5 6faeea622994c796ec8e2a8e34e96c3b
BLAKE2b-256 e6b9f3b8544d00cce2515502c5ce59a9408a941b2935ab675d166533373b82fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openTSNE-0.3.10-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.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12

File hashes

Hashes for openTSNE-0.3.10-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c12721b84f446f7301793984677273741e0cdabd1ff3421b69a4d5dca86e411c
MD5 6083ced8923e7b402e273f35107e32df
BLAKE2b-256 38c88db97a7ead10fab42517f7ee79dc05dd3cfed2d4c8121fb7b5a2d60d8f4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openTSNE-0.3.10-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 389.0 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.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12

File hashes

Hashes for openTSNE-0.3.10-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 0fe084678f5eaac0da24bcce9a6ba33fb400aa75997ca533e6391d181d4834ae
MD5 8518248cbde5bf4de139b301f57e7d63
BLAKE2b-256 e9529a7142ced88ba260148020bc603b21cbcaf48eabe16fd27496f04f120e75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openTSNE-0.3.10-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 366.4 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.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12

File hashes

Hashes for openTSNE-0.3.10-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 d2ae2ef4f96747620487cbfddf8379db31f0f7445389dd53fd47387aa593e1fb
MD5 72d93d791e33d34e24498d19a17d317a
BLAKE2b-256 7c6ce5281c5fcefa6beeb3cfa838a1c12b273ed148650251a3980f2a934f0b7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openTSNE-0.3.10-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.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12

File hashes

Hashes for openTSNE-0.3.10-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0b44500211551412015a6d6f60f3bce5f4a223a5e07a798e6746e14566f3988c
MD5 6e7b6df13aace09de07fcbc23f18fc43
BLAKE2b-256 6097681ff502b18e1aa0c232f7beb1f19a47f37c8497b8e8ee0ce89fbe12cfd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openTSNE-0.3.10-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 390.0 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.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/2.7.12

File hashes

Hashes for openTSNE-0.3.10-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c9adcb0965cc9c0718911f42ee9bc3ed4abbfe649996cf3e09a574700c5d9e7b
MD5 5a61bfef667e6ed4ff282b8866dbc8b8
BLAKE2b-256 d95e628b31d14c8b8e6653854c7d3ee1208611e9f32375fae180c58c84c9b9ee

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