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.3.tar.gz (5.1 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.3-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsnex-0.0.3.tar.gz
  • Upload date:
  • Size: 5.1 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.3.tar.gz
Algorithm Hash digest
SHA256 e119b30a89125ba490bb5da1fe323019add2c011a6b96b1c87937ad0906067fe
MD5 8623218f2ca20e007bf0690a9f841daa
BLAKE2b-256 d82d3ee5c78a4fd1662cd280905ada9ddbb40ac40a1b7f891364e1ed004d881c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsnex-0.0.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: tsnex-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6e05918b2b6252ae16f0fec88f84ba87240e58db7f36491fedae3d44b4574bbe
MD5 c49b0faba58b93f0b522656693896d38
BLAKE2b-256 2c065bb884f3f8dbc0dec52729e3ac1a88d97dfd2a3d1cb73e5bc495f2a2fc15

See more details on using hashes here.

Provenance

The following attestation bundles were made for tsnex-0.0.3-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