Example #1
0
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),
    )
Example #2
0
 def subsample(self, *args):
     """Subsample the input using this class's subsampling scheme.
     """
     return subsample(self.subsampling_scheme,
                      random_state=self.random_state_,
                      *args)
Example #3
0
 def subsample(self, *args):
     return subsample(self.subsampling_scheme,
                      random_state=self.random_state_,
                      *args)