- class ott.problems.linear.linear_problem.LinearProblem(geom, a=None, b=None, tau_a=1.0, tau_b=1.0)#
Linear OT problem.
This class describes the main ingredients appearing in a linear OT problem. Namely, a
geomobject (including cost structure/points) describing point clouds or the support of measures, followed by probability masses
b. Unbalancedness of the problem is also kept track of, through two coefficients
tau_b, which are both kept between 0 and 1 (1 corresponding to a balanced OT problem).
Geometry) – The ground geometry cost of the linear problem.
float) – If \(<1\), defines how much unbalanced the problem is on the first marginal.
float) – If \(< 1\), defines how much unbalanced the problem is on the second marginal.
Instantiate useful functions for Sinkhorn depending on lse_mode.
Whether the problem is balanced.
True if square shape, i.e.
n == m.
True if no weights
a,bwere passed, and have defaulted to uniform.