Skip to content

Instantly share code, notes, and snippets.

View yusufbtanriverdi's full-sized avatar

Yusuf B. Tanrıverdi yusufbtanriverdi

View GitHub Profile
@ctralie
ctralie / testOt.py
Created November 14, 2018 01:43
2D Histogram Wasserstein Distance via POT Library
"""
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
"""
import numpy as np
import matplotlib.pyplot as plt
import ot