moscot.problems.generic.SinkhornProblem.prepare#

SinkhornProblem.prepare(key, joint_attr=None, policy='sequential', cost='sq_euclidean', cost_kwargs=mappingproxy({}), a=None, b=None, **kwargs)[source]#

Prepare the individual linear subproblems.

See also

  • See Custom cost matrices on how to pass custom cost matrices.

  • TODO(michalk8): add an example that shows how to pass different costs (with kwargs).

Parameters:
Return type:

SinkhornProblem[TypeVar(K, bound= Hashable), TypeVar(B, bound= OTProblem)]

Returns:

: Returns self and updates the following fields: