ott.initializers.linear.initializers.SubsampleInitializer.init_dual_b#
- SubsampleInitializer.init_dual_b(ot_prob, lse_mode, rng=None)#
Initialize Sinkhorn potential/scaling g_v.
- Parameters:
ot_prob (
LinearProblem
) – Linear OT problem.lse_mode (
bool
) – Return potential ifTrue
, scaling ifFalse
.rng (
Optional
[Array
]) – Random number generator for stochastic initializers.
- Return type:
- Returns:
potential/scaling, array of size
[m,]
.