Skip to main content

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". Our paper can be found here.

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 121
pip install .[cu124]  # cuda 124
pip install .[mps]    # arm64/aarch64 (Apple M-Series chips)

This project also supports uv (pip install uv):

echo "3.11" > .python-version  # supported: [3.9, 3.12)
uv sync (--extra cpu)  # as appropriate for your system
uv run pytest
TORCH_DEVICE=cpu uv run pytest  # disable accelerator

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 Contributor

A full list of project contributors can be found here.

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

parampacmap-0.1.1rc0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

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

parampacmap-0.1.1rc0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file parampacmap-0.1.1rc0.tar.gz.

File metadata

  • Download URL: parampacmap-0.1.1rc0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.12

File hashes

Hashes for parampacmap-0.1.1rc0.tar.gz
Algorithm Hash digest
SHA256 0af54319245bcaa780bde21466305a611b39ffd4484a53f8bf87a18a08a80c80
MD5 231a7a2a4f61834c7ea86c59af65579e
BLAKE2b-256 4b666b0e687549b4e959f1697177873605b242117935cc2f014adf9c73a5baa9

See more details on using hashes here.

File details

Details for the file parampacmap-0.1.1rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for parampacmap-0.1.1rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 79ff06809dfb86ab98063745a05413372a83fe807536b17f6358753a5f4a7d47
MD5 b8efb3bb4c9bca67a63a2feb10c35709
BLAKE2b-256 f6dd74ea7e15b63fa52dca238458b09bd65d809db0522cf2267a7766056895b1

See more details on using hashes here.

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