ott.initializers.linear.initializers_lr.KMeansInitializer.init_g#
- KMeansInitializer.init_g(ot_prob, rng, **kwargs)[source]#
Initialize the low-rank factor \(g\).
- Parameters:
ot_prob (
Union
[LinearProblem
,QuadraticProblem
]) – OT problem.rng (
Array
) – Random key for seeding.kwargs (
Any
) – Additional keyword arguments.
- Return type:
- Returns:
Array of shape
[rank,]
.