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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tapkee-1.3.4.tar.gz.
File metadata
- Download URL: tapkee-1.3.4.tar.gz
- Upload date:
- Size: 82.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56d926a0f495d301bf49a22cadf6bce19653b0d2d6aeb3722a16f30f47fd1e76
|
|
| MD5 |
72ec15367540fe512c691958e259ba6c
|
|
| BLAKE2b-256 |
3d8454bebb270567fa292e3f35173f9e87b42e76ff31aa9c20bf5c0aa0bbca6a
|
Provenance
The following attestation bundles were made for tapkee-1.3.4.tar.gz:
Publisher:
release.yml on lisitsyn/tapkee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tapkee-1.3.4.tar.gz -
Subject digest:
56d926a0f495d301bf49a22cadf6bce19653b0d2d6aeb3722a16f30f47fd1e76 - Sigstore transparency entry: 947977474
- Sigstore integration time:
-
Permalink:
lisitsyn/tapkee@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Branch / Tag:
refs/tags/v1.3.4 - Owner: https://github.com/lisitsyn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Trigger Event:
push
-
Statement type:
File details
Details for the file tapkee-1.3.4-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: tapkee-1.3.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74bcee3bccec76d806c951f5f2a72ee66d1049c6c43d0482fb3b67ad78588a31
|
|
| MD5 |
5a35ed3df7cc4c82fb77be2e9acc595d
|
|
| BLAKE2b-256 |
4a046de3e233de2b0a96da50b95f5c8c6c905dbbcb7cd1995ef8865219fa449f
|
Provenance
The following attestation bundles were made for tapkee-1.3.4-cp313-cp313-win_amd64.whl:
Publisher:
release.yml on lisitsyn/tapkee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tapkee-1.3.4-cp313-cp313-win_amd64.whl -
Subject digest:
74bcee3bccec76d806c951f5f2a72ee66d1049c6c43d0482fb3b67ad78588a31 - Sigstore transparency entry: 947977674
- Sigstore integration time:
-
Permalink:
lisitsyn/tapkee@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Branch / Tag:
refs/tags/v1.3.4 - Owner: https://github.com/lisitsyn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Trigger Event:
push
-
Statement type:
File details
Details for the file tapkee-1.3.4-cp313-cp313-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: tapkee-1.3.4-cp313-cp313-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 12.8 MB
- Tags: CPython 3.13, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8783e70eb675e63dd5ae728451ee940d08d5b40db620349f2a4e359a1b954cb0
|
|
| MD5 |
6a1a0e81bec0e11a7a8aa4a4ed031f3f
|
|
| BLAKE2b-256 |
19c5cccf15551c1dffbd943f3cc15dee96be9792c4d322af32d5c2e902358a32
|
Provenance
The following attestation bundles were made for tapkee-1.3.4-cp313-cp313-manylinux_2_28_x86_64.whl:
Publisher:
release.yml on lisitsyn/tapkee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tapkee-1.3.4-cp313-cp313-manylinux_2_28_x86_64.whl -
Subject digest:
8783e70eb675e63dd5ae728451ee940d08d5b40db620349f2a4e359a1b954cb0 - Sigstore transparency entry: 947977801
- Sigstore integration time:
-
Permalink:
lisitsyn/tapkee@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Branch / Tag:
refs/tags/v1.3.4 - Owner: https://github.com/lisitsyn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Trigger Event:
push
-
Statement type:
File details
Details for the file tapkee-1.3.4-cp313-cp313-macosx_15_0_arm64.whl.
File metadata
- Download URL: tapkee-1.3.4-cp313-cp313-macosx_15_0_arm64.whl
- Upload date:
- Size: 12.2 MB
- Tags: CPython 3.13, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
145b982bada78b235ed2ab536155e027d226216ceaff2eb9ddb6f8c00fd369c9
|
|
| MD5 |
a32924e61320555bfb7190fed312c557
|
|
| BLAKE2b-256 |
2d376a307f3ca30a71bfe8ede9078267fbd02bd222e69b3b4d8bfbc9a9c1dedf
|
Provenance
The following attestation bundles were made for tapkee-1.3.4-cp313-cp313-macosx_15_0_arm64.whl:
Publisher:
release.yml on lisitsyn/tapkee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tapkee-1.3.4-cp313-cp313-macosx_15_0_arm64.whl -
Subject digest:
145b982bada78b235ed2ab536155e027d226216ceaff2eb9ddb6f8c00fd369c9 - Sigstore transparency entry: 947977526
- Sigstore integration time:
-
Permalink:
lisitsyn/tapkee@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Branch / Tag:
refs/tags/v1.3.4 - Owner: https://github.com/lisitsyn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Trigger Event:
push
-
Statement type:
File details
Details for the file tapkee-1.3.4-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: tapkee-1.3.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2629dd70b2f32738eabb1c7c89c687dff590837693a9f9c51f3fab35aceead1f
|
|
| MD5 |
fe5be00017acca1bfe6283d20ec0107f
|
|
| BLAKE2b-256 |
c9079bd4c900f33ee54d4cd03d4c1c42bbcadec2175f684d9b20a0711fcd3e79
|
Provenance
The following attestation bundles were made for tapkee-1.3.4-cp312-cp312-win_amd64.whl:
Publisher:
release.yml on lisitsyn/tapkee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tapkee-1.3.4-cp312-cp312-win_amd64.whl -
Subject digest:
2629dd70b2f32738eabb1c7c89c687dff590837693a9f9c51f3fab35aceead1f - Sigstore transparency entry: 947977847
- Sigstore integration time:
-
Permalink:
lisitsyn/tapkee@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Branch / Tag:
refs/tags/v1.3.4 - Owner: https://github.com/lisitsyn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Trigger Event:
push
-
Statement type:
File details
Details for the file tapkee-1.3.4-cp312-cp312-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: tapkee-1.3.4-cp312-cp312-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 12.8 MB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b27c20d6214c5536e682d218ee00078141a30d141c09acd17f0b6b4dc8b3515a
|
|
| MD5 |
e1a7c6e5a4d3184ce431c6f17d98887d
|
|
| BLAKE2b-256 |
550a1a33c7da0bba69be9faf134236af0e06d49f583d81b2b45284ede6b374eb
|
Provenance
The following attestation bundles were made for tapkee-1.3.4-cp312-cp312-manylinux_2_28_x86_64.whl:
Publisher:
release.yml on lisitsyn/tapkee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tapkee-1.3.4-cp312-cp312-manylinux_2_28_x86_64.whl -
Subject digest:
b27c20d6214c5536e682d218ee00078141a30d141c09acd17f0b6b4dc8b3515a - Sigstore transparency entry: 947977893
- Sigstore integration time:
-
Permalink:
lisitsyn/tapkee@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Branch / Tag:
refs/tags/v1.3.4 - Owner: https://github.com/lisitsyn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Trigger Event:
push
-
Statement type:
File details
Details for the file tapkee-1.3.4-cp312-cp312-macosx_15_0_arm64.whl.
File metadata
- Download URL: tapkee-1.3.4-cp312-cp312-macosx_15_0_arm64.whl
- Upload date:
- Size: 12.2 MB
- Tags: CPython 3.12, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87117efbc2c4c397dbb52ee2900f8a07c38a7caf4fd65790c2d234ecec902d48
|
|
| MD5 |
90e251ab90a24e84f79b6d27b5bafa16
|
|
| BLAKE2b-256 |
4708319b2557226e8943c72630ed8ead68b6c6ef60c3110c07cdfaaaa40e60ca
|
Provenance
The following attestation bundles were made for tapkee-1.3.4-cp312-cp312-macosx_15_0_arm64.whl:
Publisher:
release.yml on lisitsyn/tapkee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tapkee-1.3.4-cp312-cp312-macosx_15_0_arm64.whl -
Subject digest:
87117efbc2c4c397dbb52ee2900f8a07c38a7caf4fd65790c2d234ecec902d48 - Sigstore transparency entry: 947977757
- Sigstore integration time:
-
Permalink:
lisitsyn/tapkee@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Branch / Tag:
refs/tags/v1.3.4 - Owner: https://github.com/lisitsyn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Trigger Event:
push
-
Statement type:
File details
Details for the file tapkee-1.3.4-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: tapkee-1.3.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12a0bafffc1e97c6ffa45a10a64d815ff1172529dd672028dfb3be5f2f3f95c5
|
|
| MD5 |
6735e8b79063ae1c0946689728468f04
|
|
| BLAKE2b-256 |
31e1c83147059400ddea54d80c9cb55effe76d81f78ddfcc95c70767ebf2c09d
|
Provenance
The following attestation bundles were made for tapkee-1.3.4-cp311-cp311-win_amd64.whl:
Publisher:
release.yml on lisitsyn/tapkee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tapkee-1.3.4-cp311-cp311-win_amd64.whl -
Subject digest:
12a0bafffc1e97c6ffa45a10a64d815ff1172529dd672028dfb3be5f2f3f95c5 - Sigstore transparency entry: 947977624
- Sigstore integration time:
-
Permalink:
lisitsyn/tapkee@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Branch / Tag:
refs/tags/v1.3.4 - Owner: https://github.com/lisitsyn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Trigger Event:
push
-
Statement type:
File details
Details for the file tapkee-1.3.4-cp311-cp311-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: tapkee-1.3.4-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 12.8 MB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e69d2c43a88b16eb87b06bc988e450fb2adbdc15fc963ee84fc69cd8e6cb8731
|
|
| MD5 |
af202d92702d415d3932ff202aca113d
|
|
| BLAKE2b-256 |
c79c2e2ab08383c99c6bff8cf99ef9894cb6d0be7c46d74b5e73974ec7a35444
|
Provenance
The following attestation bundles were made for tapkee-1.3.4-cp311-cp311-manylinux_2_28_x86_64.whl:
Publisher:
release.yml on lisitsyn/tapkee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tapkee-1.3.4-cp311-cp311-manylinux_2_28_x86_64.whl -
Subject digest:
e69d2c43a88b16eb87b06bc988e450fb2adbdc15fc963ee84fc69cd8e6cb8731 - Sigstore transparency entry: 947977715
- Sigstore integration time:
-
Permalink:
lisitsyn/tapkee@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Branch / Tag:
refs/tags/v1.3.4 - Owner: https://github.com/lisitsyn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Trigger Event:
push
-
Statement type:
File details
Details for the file tapkee-1.3.4-cp311-cp311-macosx_15_0_arm64.whl.
File metadata
- Download URL: tapkee-1.3.4-cp311-cp311-macosx_15_0_arm64.whl
- Upload date:
- Size: 12.2 MB
- Tags: CPython 3.11, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff555d370effbc5efaace79575fc3ec2bce966fa193bee61ff5ac19d5e40a69b
|
|
| MD5 |
dc153ec4a55770b4ced5dfe0be1b2b80
|
|
| BLAKE2b-256 |
b5de652f8808dc4b9bf000db320b9fa8cca67ad952fd41d250c0d8a629ba1151
|
Provenance
The following attestation bundles were made for tapkee-1.3.4-cp311-cp311-macosx_15_0_arm64.whl:
Publisher:
release.yml on lisitsyn/tapkee
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tapkee-1.3.4-cp311-cp311-macosx_15_0_arm64.whl -
Subject digest:
ff555d370effbc5efaace79575fc3ec2bce966fa193bee61ff5ac19d5e40a69b - Sigstore transparency entry: 947977578
- Sigstore integration time:
-
Permalink:
lisitsyn/tapkee@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Branch / Tag:
refs/tags/v1.3.4 - Owner: https://github.com/lisitsyn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1e52a935ff5d28b3655fd8f543d7786d9b8f6aec -
Trigger Event:
push
-
Statement type: