Minimal t-distributed stochastic neighbor embedding (t-SNE) implementation in JAX.
Project description
TSNEx
TSNEx is a lightweight, high-performance Python library for t-Distributed Stochastic Neighbor Embedding (t-SNE) built on top of JAX. Leveraging the power of JAX, tsnex
offers JIT compilation, automatic differentiation, and hardware acceleration support to efficiently handle high-dimensional data for visualization and clustering tasks.
Installation
Use the package manager pip to install tsnex
.
pip install tsnex
Usage
import tsnex
# Generate some high-dimensional data
key = jax.random.key(0)
X = jax.random.normal(key, shape=(10_000, 50))
# Perform t-SNE dimensionality reduction
X_embedded = tsnex.transform(X, n_components=2)
Contributing
We welcome contributions to TSNEx! Whether it's adding new features, improving documentation, or reporting issues, please feel free to make a pull request and/or open an issue.
License
TSNEx is licensed under the MIT License. See the file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tsnex-0.0.1.tar.gz
.
File metadata
- Download URL: tsnex-0.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72459c46f67af9706a139fe0d95f3f9320100c4a9b91b8d83ee1d6b0a7399572 |
|
MD5 | 9f42dc0570688ab8f603c66239dad797 |
|
BLAKE2b-256 | 0859c6a83c36a17f414ca8efea18bb2835b7123c0be415e4f070955966bbf507 |
File details
Details for the file tsnex-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: tsnex-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02c5a42c4cebbc9732c870a4ad65274c39f98b3a0924f4607abaf557d2754c11 |
|
MD5 | 88c83f5fcaf2e4f472372d7b5bb506b3 |
|
BLAKE2b-256 | cdce9d9ac20bbb89284ce11dea39ddf2bd22720c1c3bc19918593596f6331b8c |