Lines Matching defs:ThreadEventQueue
28 # License: BSD 3 clause
30 import warnings
34 import scipy.sparse as sp
36 from .base import BaseEstimator, TransformerMixin
40 from .utils.random import sample_without_replacement
55 The distortion introduced by a random projection `p` only changes the
63 n_features), eps is in ]0, 1[ and p is a projection by a random Gaussian
70 n_components >= 4 log(n_samples) / (eps^2 / 2 - eps^3 / 3)
93 n_components : int or ndarray of int
125 if np.any(n_samples) <= 0:
136 """Factorize density check according to Li et al."""
166 n_components : int,
184 --------
199 Achlioptas while setting a lower value will yield the generalization
200 by Ping Li et al.
202 If we note :math:`s = 1 / density`, the components of the random matrix are
205 - -sqrt(s) / sqrt(n_components) with probability 1 / 2s