ott.solvers.linear.sinkhorn_lr.LRSinkhornState#
- class ott.solvers.linear.sinkhorn_lr.LRSinkhornState(q, r, g, gamma, costs, errors, crossed_threshold)[source]#
State of the Low Rank Sinkhorn algorithm.
Methods
compute_error
(previous_state)count
(value, /)Return number of occurrences of value.
index
(value[, start, stop])Return first index of value.
reg_ot_cost
(ot_prob, *, epsilon[, use_danskin])For LR Sinkhorn, this defaults to the primal cost of LR solution.
set
(**kwargs)Return a copy of self, with potential overwrites.
solution_error
(ot_prob, norm_error)Attributes
Alias for field number 4
Alias for field number 6
Alias for field number 5
Alias for field number 2
Alias for field number 3
Alias for field number 0
Alias for field number 1