ott.core.initializers.DefaultInitializer.init_dual_b#

DefaultInitializer.init_dual_b(ot_prob, lse_mode)[source]#

Initialize Sinkhorn potential/scaling g_v.

Parameters
  • ot_prob (LinearProblem) – OT problem between discrete distributions of size n and m.

  • lse_mode (bool) – Return potential if true, scaling if false.

Return type

ndarray

Returns

potential/scaling, array of size m.