Skip to content

Commit b568f20

Browse files
authored
[DOC Update random_state descriptions for Kernel Approximation (scikit-learn#16838)
1 parent dba4514 commit b568f20

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

sklearn/kernel_approximation.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ class RBFSampler(TransformerMixin, BaseEstimator):
4040
Equals the dimensionality of the computed feature space.
4141
4242
random_state : int, RandomState instance or None, optional (default=None)
43-
If int, random_state is the seed used by the random number generator;
44-
If RandomState instance, random_state is the random number generator;
45-
If None, the random number generator is the RandomState instance used
46-
by `np.random`.
43+
Pseudo-random number generator to control the generation of the random
44+
weights and random offset when fitting the training data.
45+
Pass an int for reproducible output across multiple function calls.
46+
See :term:`Glossary <random_state>`.
4747
4848
Attributes
4949
----------
@@ -154,10 +154,10 @@ class SkewedChi2Sampler(TransformerMixin, BaseEstimator):
154154
Equals the dimensionality of the computed feature space.
155155
156156
random_state : int, RandomState instance or None, optional (default=None)
157-
If int, random_state is the seed used by the random number generator;
158-
If RandomState instance, random_state is the random number generator;
159-
If None, the random number generator is the RandomState instance used
160-
by `np.random`.
157+
Pseudo-random number generator to control the generation of the random
158+
weights and random offset when fitting the training data.
159+
Pass an int for reproducible output across multiple function calls.
160+
See :term:`Glossary <random_state>`.
161161
162162
Examples
163163
--------
@@ -482,10 +482,11 @@ class Nystroem(TransformerMixin, BaseEstimator):
482482
How many data points will be used to construct the mapping.
483483
484484
random_state : int, RandomState instance or None, optional (default=None)
485-
If int, random_state is the seed used by the random number generator;
486-
If RandomState instance, random_state is the random number generator;
487-
If None, the random number generator is the RandomState instance used
488-
by `np.random`.
485+
Pseudo-random number generator to control the uniform sampling without
486+
replacement of n_components of the training data to construct the basis
487+
kernel.
488+
Pass an int for reproducible output across multiple function calls.
489+
See :term:`Glossary <random_state>`.
489490
490491
Attributes
491492
----------

0 commit comments

Comments
 (0)