Skip to content

Instantly share code, notes, and snippets.

View smestern's full-sized avatar

smestern smestern

View GitHub Profile
@smestern
smestern / testSW.py
Last active November 9, 2023 10:57 — forked from ctralie/testOt.py
2D Histogram Sliced Wasserstein Distance via Scipy.stats
"""
Original Docstring -
Programmer: Chris Tralie
Purpose: To use the POT library (https://github.com/rflamary/POT)
to compute the Entropic regularized Wasserstein distance
between points on a 2D grid
Modified by Sam Mestern
Shows the usage of the sliced wasserstein distance to measure the distance between two