Skip to main content

Dimensionality reduction library with Isomap, LLE, t-SNE, PCA, and more

Project description

Tapkee

Efficient dimensionality reduction library with a focus on spectral methods.

Tapkee implements over 20 dimensionality reduction algorithms and provides a simple Python interface to all of them.

Installation

pip install tapkee

Usage

import numpy as np
from matplotlib import pyplot as plt
import tapkee

# Generate a Swiss roll dataset
n = 2000
t = 1.5 * np.pi * (1 + 2 * np.random.rand(n))
x, y, z = t * np.cos(t), 30 * np.random.rand(n), t * np.sin(t)
data = np.vstack([x, y, z])  # 3 features, n samples

# Unroll with Locally Linear Embedding
embedding = tapkee.embed(data, method="lle", num_neighbors=12)

plt.scatter(embedding[:, 0], embedding[:, 1], c=t, cmap="Spectral", s=5)
plt.title("Swiss roll unrolled with LLE")
plt.show()

Supported methods

Method method= Key parameters
Isomap "isomap" num_neighbors
Landmark Isomap "l-isomap" num_neighbors, landmark_ratio
Diffusion Maps "dm" gaussian_kernel_width, diffusion_map_timesteps
Laplacian Eigenmaps "la" num_neighbors, gaussian_kernel_width
Locally Linear Embedding "lle" num_neighbors
Hessian LLE "hlle" num_neighbors
Local Tangent Space Alignment "ltsa" num_neighbors
Linear LTSA "lltsa" num_neighbors
Locality Preserving Projections "lpp" num_neighbors, gaussian_kernel_width
Neighborhood Preserving Embedding "npe" num_neighbors
PCA "pca"
Kernel PCA "kpca" gaussian_kernel_width
Factor Analysis "fa" max_iteration, fa_epsilon
Random Projection "ra"
MDS "mds"
Landmark MDS "l-mds" landmark_ratio
t-SNE "t-sne" sne_perplexity, sne_theta
Stochastic Proximity Embedding "spe" spe_global_strategy, spe_num_updates, spe_tolerance
Manifold Sculpting "manifold_sculpting" num_neighbors, squishing_rate, max_iteration

All methods accept target_dimension (default: 2). Neighbor-based methods accept num_neighbors (default: 5).

Parameters

Parameter Type Description
target_dimension int Output dimensionality
num_neighbors int Number of neighbors for local methods
gaussian_kernel_width float Width of the Gaussian kernel
landmark_ratio float Ratio of landmark points (0 to 1)
max_iteration int Maximum iterations for iterative methods
diffusion_map_timesteps int Number of timesteps for Diffusion Maps
sne_perplexity float Perplexity for t-SNE
sne_theta float Angle for Barnes-Hut approximation in t-SNE
squishing_rate float Rate for Manifold Sculpting
spe_global_strategy bool Use global strategy for SPE
spe_num_updates int Number of SPE updates
spe_tolerance float SPE convergence tolerance
nullspace_shift float Regularizer for eigenproblems
klle_shift float KLLE regularizer
fa_epsilon float Factor Analysis convergence epsilon
check_connectivity bool Check graph connectivity

Links

Citation

If you use Tapkee in a publication, please cite:

Sergey Lisitsyn, Christian Widmer, Fernando J. Iglesias Garcia. Tapkee: An Efficient Dimension Reduction Library. Journal of Machine Learning Research, 14: 2355-2359, 2013.

License

BSD 3-Clause

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

tapkee-1.3.3.tar.gz (80.3 kB view details)

Uploaded Source

Built Distributions

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

tapkee-1.3.3-cp313-cp313-win_amd64.whl (6.3 MB view details)

Uploaded CPython 3.13Windows x86-64

tapkee-1.3.3-cp313-cp313-manylinux_2_28_x86_64.whl (12.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

tapkee-1.3.3-cp313-cp313-macosx_15_0_arm64.whl (12.6 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

tapkee-1.3.3-cp312-cp312-win_amd64.whl (6.3 MB view details)

Uploaded CPython 3.12Windows x86-64

tapkee-1.3.3-cp312-cp312-manylinux_2_28_x86_64.whl (12.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

tapkee-1.3.3-cp312-cp312-macosx_15_0_arm64.whl (12.6 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

tapkee-1.3.3-cp311-cp311-win_amd64.whl (6.3 MB view details)

Uploaded CPython 3.11Windows x86-64

tapkee-1.3.3-cp311-cp311-manylinux_2_28_x86_64.whl (12.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

tapkee-1.3.3-cp311-cp311-macosx_15_0_arm64.whl (12.7 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

File details

Details for the file tapkee-1.3.3.tar.gz.

File metadata

  • Download URL: tapkee-1.3.3.tar.gz
  • Upload date:
  • Size: 80.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tapkee-1.3.3.tar.gz
Algorithm Hash digest
SHA256 c20a329e6e8da3b3eafaa6ade719f874bad886a025e4524a276e606608e15974
MD5 f6e64c1637f290f35e4429bc5f9766c6
BLAKE2b-256 818265f3400e02dfc2770adf0dfa67d865a041f37d0bcd1535879d3c5575b04f

See more details on using hashes here.

Provenance

The following attestation bundles were made for tapkee-1.3.3.tar.gz:

Publisher: release.yml on lisitsyn/tapkee

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

File details

Details for the file tapkee-1.3.3-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: tapkee-1.3.3-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 6.3 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tapkee-1.3.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4ff1e6435c3ec8eedafcafdd1126a76a1be568022ed67bb49ae15fbadded541d
MD5 4adc47905f0fc9d87fa5839542f558e7
BLAKE2b-256 137a77d2be3e7aa35012e5451311e404fb7e90dc57e08c746f4c8e2610d1ed39

See more details on using hashes here.

Provenance

The following attestation bundles were made for tapkee-1.3.3-cp313-cp313-win_amd64.whl:

Publisher: release.yml on lisitsyn/tapkee

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

File details

Details for the file tapkee-1.3.3-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for tapkee-1.3.3-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4a9a7a4ba009000aa64b8e855ea0c877f14c6572a410bfe4575b317034de02f6
MD5 0fc34da98f0005e34ceebb181175387e
BLAKE2b-256 fb863e35f679adeda3f1598657ccaf12ec9058765c2947f76549b8d3d303fe7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tapkee-1.3.3-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: release.yml on lisitsyn/tapkee

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

File details

Details for the file tapkee-1.3.3-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for tapkee-1.3.3-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 fafacdbb1849babd17208694ecbbc4265ac5a1a962982152b1f5784dfd405256
MD5 f31f1e6ae75df4f1b0d621572d3aed37
BLAKE2b-256 f5ae4a7277b5b0d373fc76f2ca1cec2ee6802841363da92cb2a80ebed1f2a418

See more details on using hashes here.

Provenance

The following attestation bundles were made for tapkee-1.3.3-cp313-cp313-macosx_15_0_arm64.whl:

Publisher: release.yml on lisitsyn/tapkee

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

File details

Details for the file tapkee-1.3.3-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: tapkee-1.3.3-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 6.3 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tapkee-1.3.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e9b67ab015a9e159fc788bb8643bd5f147a10f30239e5f0265a692e8cef8db25
MD5 35a1ce6d58b2a505d7213442689ee1c4
BLAKE2b-256 1b6e2f42213309e49709f84bdcc09da8aafb12a04c9988b6a18f295779f57862

See more details on using hashes here.

Provenance

The following attestation bundles were made for tapkee-1.3.3-cp312-cp312-win_amd64.whl:

Publisher: release.yml on lisitsyn/tapkee

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

File details

Details for the file tapkee-1.3.3-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for tapkee-1.3.3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9ba308364a159db4cb2130c3229ad31f490697427e54cb1890e2e13263187b13
MD5 3f4b83fe81993e6589ac6adc268e1661
BLAKE2b-256 1d7d1cf4c51cfe8f903cf31615539f0da9eb0972bbfd1d25302e08efe6e04fdc

See more details on using hashes here.

Provenance

The following attestation bundles were made for tapkee-1.3.3-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: release.yml on lisitsyn/tapkee

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

File details

Details for the file tapkee-1.3.3-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for tapkee-1.3.3-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 3a9437a3f4ca71b0b66bbc61454f0f59d1db9669d2a8d7e5e8e5fb745d3a3b41
MD5 1b57e4d9b940e8316ec024c5d7b3d979
BLAKE2b-256 1caed45ffe5bc9b3b0d92901b87c4f98f33f30e60842d30ede50a8ae410d8f29

See more details on using hashes here.

Provenance

The following attestation bundles were made for tapkee-1.3.3-cp312-cp312-macosx_15_0_arm64.whl:

Publisher: release.yml on lisitsyn/tapkee

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

File details

Details for the file tapkee-1.3.3-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: tapkee-1.3.3-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 6.3 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tapkee-1.3.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ed35fa4e0c61f41e0c420dd1a8425150c7add0066451186562d0947263cef333
MD5 c2d3b168303d64adaa9c0304aca425da
BLAKE2b-256 6ae34c85dd67dd57e8e235fbdbd4eca166c4503c9194ff2b24207b3c42d377dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for tapkee-1.3.3-cp311-cp311-win_amd64.whl:

Publisher: release.yml on lisitsyn/tapkee

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

File details

Details for the file tapkee-1.3.3-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for tapkee-1.3.3-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 46700a5b4b05684537f20b8c211ea97e8d32d4c8b321e8e23c3d96415b0bf53a
MD5 cd1cb5e72fc025532087fc07f0a7f73f
BLAKE2b-256 bb966129c1914e95b4941f4ec64512c6abe4be1a3ee97178c2d03f416a4cd294

See more details on using hashes here.

Provenance

The following attestation bundles were made for tapkee-1.3.3-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: release.yml on lisitsyn/tapkee

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

File details

Details for the file tapkee-1.3.3-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for tapkee-1.3.3-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e24e02a530ae953206284956210b45990038ba901532bce4e304a7941bfe8ba0
MD5 8702ddc1f6f06df8c0e9335ebdc8be6f
BLAKE2b-256 480413bc8f9a0d853a56462c50df293e1fcca934dda411f0453eca2fcb899a64

See more details on using hashes here.

Provenance

The following attestation bundles were made for tapkee-1.3.3-cp311-cp311-macosx_15_0_arm64.whl:

Publisher: release.yml on lisitsyn/tapkee

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