- class ott.problems.linear.potentials.DualPotentials(f, g, *, cost_fn, corr=False)#
The Kantorovich dual potential functions \(f\) and \(g\).
\(f\) and \(g\) are a pair of functions, candidates for the dual OT Kantorovich problem, supposedly optimal for a given pair of measures.
CostFn) – The cost function used to solve the OT problem.
Evaluate 2-Wasserstein distance between samples using dual potentials.
vecaccording to Brenier formula [Brenier, 1991].
The first dual potential function.
The second dual potential function.