def _subsampled_power_iteration(X, v, subsampling_scheme, random_state): X_ = subsample(subsampling_scheme, X, random_state=random_state) v, s = _power_iteration(X_, v) return ( v, s / subsampling_fraction( len(X), subsampling_scheme, random_state=random_state), )
def subsample(self, *args): """Subsample the input using this class's subsampling scheme. """ return subsample(self.subsampling_scheme, random_state=self.random_state_, *args)
def subsample(self, *args): return subsample(self.subsampling_scheme, random_state=self.random_state_, *args)