python 3.7+, Numpy, Scikit-learn
This repository is modified from https://github.com/francoispierrepaty/SubspaceRobustWasserstein Please cite these papers if you use any part of the code
Paty, F. & Cuturi, M.. (2019). Subspace Robust Wasserstein Distances.
Proceedings of the 36th International Conference on Machine Learning, in PMLR 97:5072-5081
Tianyi Lin, Chenyou Fan, Nhat Ho, Marco Cuturi, Michael I. Jordan. "Projection Robust Wasserstein Distance and Riemannian Optimization."
Conference on Neural Information Processing Systems 2020 (NeurIPS'20)
python exp1_hypercube.py
python exp1_hypercube_dim_k.py
python exp1_hypercube_plan_visualize.py
python exp2_noise.py
python exp2_noise_level.py
python exp3_cinema.py
python exp3_shakespeare.py
Compute time of SRW and PRW
python exp4_computation_time.py
Compute time of PRW with different learning rates
python exp4_robust_lr_time.py
python exp4_robust_lr_time_2.py
Please install Pytorch 1.4+ for this experiment.
python exp5_mnist.py