Skip to main content

openTSNE

Build Status Documentation Status License Badge

openTSNE is a modular Python implementation of t-Distributed Stochasitc Neighbor Embedding (t-SNE) [1], 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 [2], massive speed improvements [3] [4] [5], enabling t-SNE to scale to millions of data points and various tricks to improve global alignment of the resulting visualizations [6].

Macosko 2015 mouse retina t-SNE embedding

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

Installation

openTSNE requires Python 3.8 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

Installing from source

If you wish to install openTSNE from source, please run

pip install .

in the root directory to install the appropriate dependencies and compile the necessary binary files.

Please note that openTSNE requires a C/C++ compiler to be available on the system.

In order for openTSNE to utilize multiple threads, the C/C++ compiler must support 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{Policar2024,
    title={openTSNE: A Modular Python Library for t-SNE Dimensionality Reduction and Embedding},
    author={Poli{\v c}ar, Pavlin G. and Stra{\v z}ar, Martin and Zupan, Bla{\v z}},
    journal={Journal of Statistical Software},
    year={2024},
    volume={109},
    number={3},
    pages={1–30},
    doi={10.18637/jss.v109.i03},
    url={https://www.jstatsoft.org/index.php/jss/article/view/v109i03}
}

openTSNE implements two efficient algorithms for t-SNE. Please consider citing the original authors of the algorithm that you use. If you use FIt-SNE (default), then the citation is [5] below, but if you use Barnes-Hut the citations are [3] and [4].

References

Metadata

Release files for openTSNE 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openTSNE 1.0.2
File Size Uploaded Provenance Actions
opentsne-1.0.2.tar.gz 251.2 kB Without provenance Details for opentsne-1.0.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for openTSNE 1.0.2
File Actions
openTSNE-1.0.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for openTSNE-1.0.2-cp312-cp312-win_amd64.whl
openTSNE-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for openTSNE-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
openTSNE-1.0.2-cp312-cp312-macosx_10_12_universal2.whl CPython 3.12 CPython 3.12 macOS 10.12+ universal2 (ARM64, x86-64) Details for openTSNE-1.0.2-cp312-cp312-macosx_10_12_universal2.whl
openTSNE-1.0.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for openTSNE-1.0.2-cp311-cp311-win_amd64.whl
openTSNE-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for openTSNE-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
openTSNE-1.0.2-cp311-cp311-macosx_10_12_universal2.whl CPython 3.11 CPython 3.11 macOS 10.12+ universal2 (ARM64, x86-64) Details for openTSNE-1.0.2-cp311-cp311-macosx_10_12_universal2.whl
openTSNE-1.0.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for openTSNE-1.0.2-cp310-cp310-win_amd64.whl
openTSNE-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for openTSNE-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
openTSNE-1.0.2-cp310-cp310-macosx_10_12_universal2.whl CPython 3.10 CPython 3.10 macOS 10.12+ universal2 (ARM64, x86-64) Details for openTSNE-1.0.2-cp310-cp310-macosx_10_12_universal2.whl
openTSNE-1.0.2-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for openTSNE-1.0.2-cp39-cp39-win_amd64.whl
openTSNE-1.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for openTSNE-1.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
openTSNE-1.0.2-cp39-cp39-macosx_10_12_universal2.whl CPython 3.9 CPython 3.9 macOS 10.12+ universal2 (ARM64, x86-64) Details for openTSNE-1.0.2-cp39-cp39-macosx_10_12_universal2.whl

Total release size: 18.6 MB

Release files / opentsne-1.0.2.tar.gz

Download URL opentsne-1.0.2.tar.gz
Size 251.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e2aecaa7a487100246f2d3fef9855d1bd6cc02a1c6da8fb2a54583f307aa4229
BLAKE2b-256 checksum
How to use checksums
7109357810160298701c979a75c9d4db27e6e8996add0d7879d60cc648341171
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / openTSNE-1.0.2-cp312-cp312-win_amd64.whl

Download URL openTSNE-1.0.2-cp312-cp312-win_amd64.whl
Size 469.3 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
7f342ec51fe365cd1a23ad25e6a7b5417f8bd1bf4d71a5d526f42ad4c4b64114
BLAKE2b-256 checksum
How to use checksums
aed14cf81122288257765600faa093121530503d2893d56f9e5f68702dbd5da0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / openTSNE-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openTSNE-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.2 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
37f24d7d139bd466f00ae765120c3a8049ceddc1282e63d75e3406c3ac3b3783
BLAKE2b-256 checksum
How to use checksums
3c9ebc5edb00d363dcaf3c3708036c60930d18797621dfa1651bbf68245ab30f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / openTSNE-1.0.2-cp312-cp312-macosx_10_12_universal2.whl

Download URL openTSNE-1.0.2-cp312-cp312-macosx_10_12_universal2.whl
Size 1.0 MB
Tags CPython 3.12 macOS 10.12+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
0de8826568aa4f03658274edb393a5be031f771ea86f3493e91aecad27100c56
BLAKE2b-256 checksum
How to use checksums
0bc22032c772b0bce9c09fdb3cd45bdb6cfe1e7b177ce1f5e21952cc49af264b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / openTSNE-1.0.2-cp311-cp311-win_amd64.whl

Download URL openTSNE-1.0.2-cp311-cp311-win_amd64.whl
Size 470.7 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
6799cb38e560e50f5ea932be587ad3efd4cf62d5a55d28c3061ca3e2aee210ce
BLAKE2b-256 checksum
How to use checksums
046d1fb263a8b48d6350ea919ff30956caeff65b9c030dae0aada2093acd0d7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / openTSNE-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openTSNE-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.2 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
949f694893fd4f803acb513bc2e3d80ef04b707166c28a469ca43033f52b8e1b
BLAKE2b-256 checksum
How to use checksums
fc68243fb74f0b0c0e245f67048ad8658e444c7d92d9623812bd5f1123eaf326
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / openTSNE-1.0.2-cp311-cp311-macosx_10_12_universal2.whl

Download URL openTSNE-1.0.2-cp311-cp311-macosx_10_12_universal2.whl
Size 1.0 MB
Tags CPython 3.11 macOS 10.12+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
7882df123f210946d2806fb73feec3666e76eee2d6b6744893e14203e0641a38
BLAKE2b-256 checksum
How to use checksums
cdfa0807e7a219889dc69f25a05fdd20872513b179483630b6b52bbfccdfab47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / openTSNE-1.0.2-cp310-cp310-win_amd64.whl

Download URL openTSNE-1.0.2-cp310-cp310-win_amd64.whl
Size 470.6 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
99c90695c95f09a100216532d1cb7ec24a6269dd005f1e835c1ca0d603d43542
BLAKE2b-256 checksum
How to use checksums
d9b601c699b76282f63b2fea438ba0d22bec15dbcc2e4c30234b729594049e4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / openTSNE-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openTSNE-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.0 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
7a7270156cbabc249301cd30f6010387f618295ca68c50913c98b9dad8d9c682
BLAKE2b-256 checksum
How to use checksums
d975e032529880ccd24de86e6c7988a50e0fc8ad001a829aa3a398a947168f15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / openTSNE-1.0.2-cp310-cp310-macosx_10_12_universal2.whl

Download URL openTSNE-1.0.2-cp310-cp310-macosx_10_12_universal2.whl
Size 1.0 MB
Tags CPython 3.10 macOS 10.12+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
c82a2c263e570c75256d58590f7c99273c8f8152fada2e3f36a3de92d165a483
BLAKE2b-256 checksum
How to use checksums
558e2b5b0fb28c721d3023baa36859e209dbbdd45786e1d622ec1e484220d4f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / openTSNE-1.0.2-cp39-cp39-win_amd64.whl

Download URL openTSNE-1.0.2-cp39-cp39-win_amd64.whl
Size 472.8 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
8c927dc2b47560d06abab48a8cca0ddf388a9200a2d27fc197c786b15f644e7c
BLAKE2b-256 checksum
How to use checksums
2928da77c553872d16fc54a133c478173782ae3b5289d4b47314019d35a0703f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / openTSNE-1.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openTSNE-1.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.0 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4e349d876a26f417326b0aa4e031f2ca5af167608538eaae2b5d2fbaabd353df
BLAKE2b-256 checksum
How to use checksums
02f5ddcead14d625cc09c1779304d22aac41d3d06552a8f8bb6680d8d67e28da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / openTSNE-1.0.2-cp39-cp39-macosx_10_12_universal2.whl

Download URL openTSNE-1.0.2-cp39-cp39-macosx_10_12_universal2.whl
Size 1.0 MB
Tags CPython 3.9 macOS 10.12+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
78d1122ce9233ba3e9de07825127b34b3f330665047f3e04c3914ee0e2b3fad2
BLAKE2b-256 checksum
How to use checksums
14a572aad8de41cc577c6b34977a4cbdb97e5bf2c1141d3430191da16cd7b1dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Security for openTSNE 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page