8000 fix docs and doctests for KernelPCA · scikit-learn/scikit-learn@fc04688 · GitHub
[go: up one dir, main page]

Skip to content

Commit fc04688

Browse files
committed
fix docs and doctests for KernelPCA
1 parent eee85bb commit fc04688

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/modules/pipeline.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ and ``value`` is an estimator object::
156156
n_components=None, whiten=False)), ('kernel_pca', KernelPCA(alpha=1.0,
157157
coef0=1, degree=3, eigen_solver='auto', fit_inverse_transform=False,
158158
gamma=None, kernel='linear', kernel_params=None, max_iter=None,
159-
n_components=None, remove_zero_eig=False, tol=0))],
159+
n_components=None, random_state=None, remove_zero_eig=False, tol=0))],
160160
transformer_weights=None)
161161

162162
Like pipelines, feature unions have a shorthand constructor called

sklearn/decomposition/kernel_pca.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ class KernelPCA(BaseEstimator, TransformerMixin):
7676
When n_components is None, this parameter is ignored and components
7777
with zero eigenvalues are removed regardless.
7878
79+
random_state : int seed, RandomState instance, or None, default : None
80+
A pseudo random number generator used for the initialization of the
81+
residuals when eigen_solver == 'arpack'.
82+
7983
Attributes
8084
----------
8185

0 commit comments

Comments
 (0)
0