Skip to main content

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},
}```

Metadata

Release files for parampacmap 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parampacmap 0.1.0
File Size Uploaded
parampacmap-0.1.0.tar.gz 18.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for parampacmap 0.1.0
File Interpreter ABI Platform
parampacmap-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.5 kB

Release files / parampacmap-0.1.0.tar.gz

Download URL parampacmap-0.1.0.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
57d9bd3c4dce9ab181e9477966a4e0ab156abfab3dcf93c912b3600794978822
BLAKE2b-256 checksum
How to use checksums
bdc7885130c273a709df7206621c7c4a833df1a0f6ca02188b4fc111b8310453
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.7

Release files / parampacmap-0.1.0-py3-none-any.whl

Download URL parampacmap-0.1.0-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6735aa0af37e84acc7a945cd10fc0113a2289763defa79dab81f117968cfedf2
BLAKE2b-256 checksum
How to use checksums
7f4afbedb7cc52d136612108233f03e3b14189c2b66c2228c01facf03fb19d70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page