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 can be installed on all supported versions of Python.

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.3

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.3
File Size Uploaded Provenance Actions
opentsne-1.0.3.tar.gz 252.4 kB Without provenance Details for opentsne-1.0.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for openTSNE 1.0.3
File Actions
opentsne-1.0.3-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for opentsne-1.0.3-cp314-cp314-win_amd64.whl
opentsne-1.0.3-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for opentsne-1.0.3-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
opentsne-1.0.3-cp314-cp314-macosx_10_15_universal2.whl CPython 3.14 CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64) Details for opentsne-1.0.3-cp314-cp314-macosx_10_15_universal2.whl
opentsne-1.0.3-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for opentsne-1.0.3-cp313-cp313-win_amd64.whl
opentsne-1.0.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for opentsne-1.0.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
opentsne-1.0.3-cp313-cp313-macosx_10_13_universal2.whl CPython 3.13 CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64) Details for opentsne-1.0.3-cp313-cp313-macosx_10_13_universal2.whl
opentsne-1.0.3-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for opentsne-1.0.3-cp312-cp312-win_amd64.whl
opentsne-1.0.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for opentsne-1.0.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
opentsne-1.0.3-cp312-cp312-macosx_10_13_universal2.whl CPython 3.12 CPython 3.12 macOS 10.13+ universal2 (ARM64, x86-64) Details for opentsne-1.0.3-cp312-cp312-macosx_10_13_universal2.whl
opentsne-1.0.3-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for opentsne-1.0.3-cp311-cp311-win_amd64.whl
opentsne-1.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for opentsne-1.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
opentsne-1.0.3-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.3-cp311-cp311-macosx_10_12_universal2.whl
opentsne-1.0.3-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for opentsne-1.0.3-cp310-cp310-win_amd64.whl
opentsne-1.0.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for opentsne-1.0.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
opentsne-1.0.3-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.3-cp310-cp310-macosx_10_12_universal2.whl

Total release size: 24.5 MB

Release files / opentsne-1.0.3.tar.gz

Download URL opentsne-1.0.3.tar.gz
Size 252.4 kB
Tags Source
SHA-256 checksum
How to use checksums
180cfdb39ef408a1ffddf9674374c52d6b62a15f807552d71965eb141bb493e8
BLAKE2b-256 checksum
How to use checksums
647026d0b7f4e30c81988973db73447ffd12e7d9a14666db8f919f6502f9c39f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp314-cp314-win_amd64.whl

Download URL opentsne-1.0.3-cp314-cp314-win_amd64.whl
Size 448.6 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
9520ab10eb18cc113faf6a74c8430310a95a7d397f33b1bbc59302de87e3cdbc
BLAKE2b-256 checksum
How to use checksums
7c3a669d803f7b371c20a09b4fca185bc1b24353f1bb3f308698f483314851f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL opentsne-1.0.3-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 3.4 MB
Tags CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
637cc014b76b9265ce191ff29f6fd324e4012b9c7e50935e8b55a6636ecaafb9
BLAKE2b-256 checksum
How to use checksums
8eabeeb475631ff5214b8fca6fcf2ac43e2de3efe2dbeac016d7fa9e88037f8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp314-cp314-macosx_10_15_universal2.whl

Download URL opentsne-1.0.3-cp314-cp314-macosx_10_15_universal2.whl
Size 976.0 kB
Tags CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
4f4f4c5326f565cebb0683299530c8014afa51121607f889b1f5908942bf74b4
BLAKE2b-256 checksum
How to use checksums
bce4b1d118e3870bdfcdae4d2b8d10d3ea93bf82acf78d325488cc178c470c8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp313-cp313-win_amd64.whl

Download URL opentsne-1.0.3-cp313-cp313-win_amd64.whl
Size 437.5 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
451585d4ee678217c6873385fdce7e02557ac30b3cdd3a02af52011b5744b28b
BLAKE2b-256 checksum
How to use checksums
0b4097f1336120633bc9ba0da847bf47326902357e85e024bfbe6665b51247a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL opentsne-1.0.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 3.5 MB
Tags CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
4ede7e7a4e6ccfda629d52c4ef9765aa81c61eb884493678c80606d1445ac4b3
BLAKE2b-256 checksum
How to use checksums
6baef18226f32e26c25d767c9034612712e6248a3c04031669081cdc40e9bc3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp313-cp313-macosx_10_13_universal2.whl

Download URL opentsne-1.0.3-cp313-cp313-macosx_10_13_universal2.whl
Size 974.2 kB
Tags CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
c276289f21cdd1bfc02beca239b1781387a7cb2bdb8af65d862b78f72f19ce61
BLAKE2b-256 checksum
How to use checksums
5f5eb6c39deec2214c84946d1cddd0c43a0c971d8a12d6447f5193148c81e061
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp312-cp312-win_amd64.whl

Download URL opentsne-1.0.3-cp312-cp312-win_amd64.whl
Size 438.2 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
b1f4a57c096c2dc63cece00a27c7e761e612479056a5e10a0330d057d2d94146
BLAKE2b-256 checksum
How to use checksums
c87235fffeb088c069dc2034257b3a11b5e0837d351ec7a1b2a1c678f1558afe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL opentsne-1.0.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 3.5 MB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1d9bf48609014a5a92e0e1a49a303b2b2a2e5ebf9b26593f1e680fe31f19c238
BLAKE2b-256 checksum
How to use checksums
a1efabc87d80fcbe795dedd1885dad1529dd4b6095ff4bfb8d5f87a8543f4ddd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp312-cp312-macosx_10_13_universal2.whl

Download URL opentsne-1.0.3-cp312-cp312-macosx_10_13_universal2.whl
Size 982.2 kB
Tags CPython 3.12 macOS 10.13+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
2137e4e96443d7907de92b21cb07936e1511d2503d23ef6549c3625abc218cb0
BLAKE2b-256 checksum
How to use checksums
01d809a43be660233d24f24b7ea603ed73b8d818f50cbdd73d61066b3205f615
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp311-cp311-win_amd64.whl

Download URL opentsne-1.0.3-cp311-cp311-win_amd64.whl
Size 437.7 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
23140d4494dd889a76d9f4404c3139ab8c5ea9ffdb23814e6e1ee18c59412e3f
BLAKE2b-256 checksum
How to use checksums
c37884084f46e5e59215ab4a453c02ace1d814a1b6e037980c8fa1c91b07eb57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL opentsne-1.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 3.5 MB
Tags CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
24a02469ac07d5b3ebc1689371647aa30f1879956fd839492bbdc44413ac03bc
BLAKE2b-256 checksum
How to use checksums
cee4ec5676d6ee3f4f1a45e22426c758e1ec98546f922f49ef7d2bb4f93aebfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp311-cp311-macosx_10_12_universal2.whl

Download URL opentsne-1.0.3-cp311-cp311-macosx_10_12_universal2.whl
Size 977.1 kB
Tags CPython 3.11 macOS 10.12+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
53b63e34bda8c0fe1ba36afa3cfc24be41916e53db44553203796661ba23b6b5
BLAKE2b-256 checksum
How to use checksums
0f3ea2362ba19be29c1fbb8372ff7a34174e3ad5185e482191117750c473634b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp310-cp310-win_amd64.whl

Download URL opentsne-1.0.3-cp310-cp310-win_amd64.whl
Size 438.7 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
ade505281bcf149dc7bd179b4030be8bf85c4df37ec62805d214cc04fa95ef8f
BLAKE2b-256 checksum
How to use checksums
235c614a9a063c461fc1cf7b0367418743fa6ae3e7b54ff0cbe711b25f54f8de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL opentsne-1.0.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 3.3 MB
Tags CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
632904ae231bd4bd86387a28b440ae0007a6e0a8f6eaaaae3b514784e014ac8d
BLAKE2b-256 checksum
How to use checksums
8fefd686454cf023a573db73d212fa3352eb688e084a06b378b121d7c52af619
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Release files / opentsne-1.0.3-cp310-cp310-macosx_10_12_universal2.whl

Download URL opentsne-1.0.3-cp310-cp310-macosx_10_12_universal2.whl
Size 977.6 kB
Tags CPython 3.10 macOS 10.12+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
b49d0b7021e76e7ea9d183359feb520df006c77a1563c8c1c2de12766b3c8602
BLAKE2b-256 checksum
How to use checksums
5cc3a856162ff8dd37635aa3859415abea3ed244047360eef2a6a905eadfa248
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.11

Security for openTSNE 1.0.3

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