Note
Go to the end to download the full example code.
Optimal Transport for fixed support
This example illustrates the computation of EMD and Sinkhorn transport plans and their visualization.
# Author: Remi Flamary <remi.flamary@unice.fr>
#
# License: MIT License
# sphinx_gallery_thumbnail_number = 3
import numpy as np
import matplotlib.pylab as pl
import ot
import ot.plot
from ot.datasets import make_1D_gauss as gauss