Package for Parameterized PaCMAP (ParamRepulsor).
Project description
ParamRepulsor
This is the code repository for the NeurIPS 2024 paper "Navigating the Effect of Parametrization for Dimensionality Reduction".
How to install
This repository can be installed locally via pip by the following command:
git clone https://github.com/hyhuang00/ParamRepulsor.git
cd ParamRepulsor
pip install .
Note: this will not install torch, as this is highly platform-dependent.
This project provides optionals:
pip install .[cpu] # cpu-only pytorch
pip install .[cu118] # cuda 118
pip install .[cu121] # cuda 118
pip install .[cu124] # cuda 118
pip install .[mps] # arm64/aarch64 (Apple M-Series chips)
This project also supports uv (pip install uv):
echo "3.11" >> .python-version
uv sync (--extra cpu) # as appropriate for your system
How to use our algorithm
ParamPaCMAP/ParamRepulsor is fully scikit-learn compatible, meaning that it can be used as any other scikit-learn based algorithm. After the installation, you can use our algorithm by:
import parampacmap
# Initialize the reducer. Notice that by default, the stronger paramrepulsor
# algorithm will be used.
reducer = parampacmap.ParamPaCMAP()
X_low = reducer.fit_transform(X) # Substitute your data here.
Citation
If you have referred to our research in your publication, or you used the ParamRepulsor/ParamPaCMAP algorithm in this repository, please cite our paper using the following bibtex:
@inproceedings{huang2024navigating,
title={Navigating the Effect of Parametrization for Dimensionality Reduction},
author={Huang, Haiyang and Wang, Yingfan and Rudin, Cynthia},
booktitle={The Thirty-eighth Annual Conference on Neural Information Processing Systems},
year={2024},
}```
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 parampacmap-0.1.0.tar.gz.
File metadata
- Download URL: parampacmap-0.1.0.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57d9bd3c4dce9ab181e9477966a4e0ab156abfab3dcf93c912b3600794978822
|
|
| MD5 |
ae0e016fbe38796ad0f350be08005487
|
|
| BLAKE2b-256 |
bdc7885130c273a709df7206621c7c4a833df1a0f6ca02188b4fc111b8310453
|
File details
Details for the file parampacmap-0.1.0-py3-none-any.whl.
File metadata
- Download URL: parampacmap-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6735aa0af37e84acc7a945cd10fc0113a2289763defa79dab81f117968cfedf2
|
|
| MD5 |
04f6b3b224bd9023f8c461baa8e1ce1a
|
|
| BLAKE2b-256 |
7f4afbedb7cc52d136612108233f03e3b14189c2b66c2228c01facf03fb19d70
|