Skip to content

Aoblex/numerical-experiments

Repository files navigation

numerical-experiments

This is an improved version of the repository SSNS, which is used to run the numerical experiments in the paper SSNS and SPLR.

Environment Preparation

Basic Packages

Create a new environment num, and install dependencies.

conda create -n num python=3.13
conda activate num
pip install scikit-learn scipy tqdm numpy seaborn ipykernel
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu

Installing RegOT

Directly install using pip:

pip install regot

Or to install the latest version of regot-python:

conda activate num
conda install gxx_linux-64
git clone --depth=1 https://github.com/yixuan/regot-python.git
cd regot-python
pip install . -r requirements.txt

Running the Experiments

Running main.ipynb saves the results and plots in save folder. The experiments include:

  • (Fashion-)MNIST: Optimal transport between two images.
  • Imagenette: Optimal transport between two classes of images.
  • Synthetic Data: Optimal transport between two given distributions and cost matrices.

About

Some numerical experiments for SPLR.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •