ott.initializers.linear.initializers_lr.KMeansInitializer.init_g

ott.initializers.linear.initializers_lr.KMeansInitializer.init_g#

KMeansInitializer.init_g(ot_prob, rng, **kwargs)[source]#

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

Parameters:
Return type:

Array

Returns:

Array of shape [rank,].