Skip to main content

Minimal t-distributed stochastic neighbor embedding (t-SNE) implementation in JAX.

Project description

tsnex

t-SNEx is a high-performance Python library for t-SNE, built on JAX for fast, scalable dimensionality reduction. It utilizes JIT compilation, automatic differentiation, and hardware acceleration to efficiently process high-dimensional data for visualization and clustering.

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.

Citation

If you use tsnex in your research and need to reference it, please cite it as follows:

@software{alonso_tsnex,
  author = {Alonso, Albert},
  title = {tsnex: Minimal t-distributed stochastic neighbor embedding (t-SNE) implementation in JAX},
  url = {https://github.com/alonfnt/tsnex},
  version = {0.0.2}
}

License

TSNEx is licensed under the MIT License. See the LICENSE file for more details.

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

tsnex-0.0.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

tsnex-0.0.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file tsnex-0.0.2.tar.gz.

File metadata

  • Download URL: tsnex-0.0.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tsnex-0.0.2.tar.gz
Algorithm Hash digest
SHA256 132f74cc8b816f5db49962ad6062aa2dddcf31f9ced2b5257fcc3f49892ba8f8
MD5 c3ab3fff8a32459014bc986740b1f76f
BLAKE2b-256 b5f18f747c1150a02b939f66bdfced2696f90b1da4c0ebef0a9ffcb136763c15

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsnex-0.0.2.tar.gz:

Publisher: python-publish.yml on alonfnt/tsnex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tsnex-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: tsnex-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tsnex-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2084029e899b906456b6feedb1483ae60ea234c03d25477e6f87237da663663
MD5 018df024a7dff45b77837a23574f204a
BLAKE2b-256 81c08cf424137cff7a0408b8b083e8d1705fdd801edb04e6b146f59f466979e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsnex-0.0.2-py3-none-any.whl:

Publisher: python-publish.yml on alonfnt/tsnex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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