ott.initializers.linear.initializers.SubsampleInitializer#
- class ott.initializers.linear.initializers.SubsampleInitializer(subsample_n_x, subsample_n_y=None, **kwargs)[source]#
Subsample initializer [Thornton and Cuturi, 2022].
Subsample each
PointCloud, then computeSinkhorn potentialfrom the subsampled approximations and use this potential to initialize Sinkhorn potentials/scalings for the original problem.- Parameters:
subsample_n_x (
int) – number of points to subsample from the first measure inPointCloud.subsample_n_y (
Optional[int]) – number of points to subsample from the second measure inPointCloud. IfNone, usesubsample_n_x.
Methods