Generalizable UMAP Implementation
Project description
NUMAP
This is the official PyTorch implementation of NUMAP from the paper "Generalizable Spectral Embedding with Applications to UMAP.
Installation
To install the package, simply use the following command:
pip install numap
Usage
The basic functionality is quite intuitive and easy to use, e.g.,
from numap import NUMAP
numap = NUMAP(n_components=2) # n_components is the number of dimensions in the low-dimensional representation
numap.fit(X) # X is the dataset and it should be a torch.Tensor
X_reduced = numap.transfrom(X) # Get the low-dimensional representation of the dataset
Y_reduced = numap.transform(Y) # Get the low-dimensional representation of a test dataset
You can read the code docs for more information and functionalities.
Running examples
In order to run the model on the moon dataset, you can either run the file, or using the command-line command:
python -m examples.reduce_moon
This will run the model on the moon dataset and plot the results.
The same can be done for the circles dataset:
python -m examples.reduce_circles
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
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 numap-0.1.5.tar.gz.
File metadata
- Download URL: numap-0.1.5.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f60ed71d823ac61ff7ea4341987bb6a3c9a816da3b0747af3c15c82eb004484
|
|
| MD5 |
d8cec9b6108e4e28cf45397246efea8b
|
|
| BLAKE2b-256 |
16021554f9cf8576fc9172ec084d6339dcdc337e7c7fa56cce6d1d017f13e386
|
File details
Details for the file numap-0.1.5-py3-none-any.whl.
File metadata
- Download URL: numap-0.1.5-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9d3972e783160b884e8dcad5cd257348f6b4893f6ddadbe765c5787b3976137
|
|
| MD5 |
3425cde03126edd9f6cd775fa5506d78
|
|
| BLAKE2b-256 |
8fe0ad4aecff503866a086e6ef830493b124bc5a3ea19c2044937d544bd851bf
|