ott.solvers.linear.sinkhorn_lr.LRSinkhornState

Contents

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)

param 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)

param ot_prob:

Attributes

costs

Alias for field number 4

crossed_threshold

Alias for field number 6

errors

Alias for field number 5

g

Alias for field number 2

gamma

Alias for field number 3

q

Alias for field number 0

r

Alias for field number 1

Parameters: