ott.initializers.linear.initializers.SubsampleInitializer.init_dual_b

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 if True, scaling if False.

  • rng (Optional[Array]) – Random number generator for stochastic initializers.

Return type:

Array

Returns:

potential/scaling, array of size [m,].