ott.initializers.linear.initializers_lr.RandomInitializer.init_q#

RandomInitializer.init_q(ot_prob, key, *, init_g, **kwargs)[source]#

Initialize the low-rank factor \(Q\).

Parameters
  • ot_prob (Union[LinearProblem, QuadraticProblem]) – OT problem.

  • key (Array) – Random key for seeding.

  • init_g (Array) – Initial value for \(g\) factor.

  • kwargs (Any) – Additional keyword arguments.

Return type

Array

Returns

Array of shape [n, rank].