8000 DOC Update default values in kernel_approximation doc string (#17536) · jayzed82/scikit-learn@c0a836c · GitHub
[go: up one dir, main page]

Skip to content

Commit c0a836c

Browse files
asubramaniyanjayzed82
authored andcommitted
DOC Update default values in kernel_approximation doc string (scikit-learn#17536)
Updated default values of parameter in kernel_approximation doc string
1 parent cfc47ea commit c0a836c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sklearn/kernel_approximation.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ class RBFSampler(TransformerMixin, BaseEstimator):
3232
3333
Parameters
3434
----------
35-
gamma : float
35+
gamma : float, default=1.0
3636
Parameter of RBF kernel: exp(-gamma * x^2)
3737
38-
n_components : int
38+
n_components : int, default=100
3939
Number of Monte Carlo samples per original feature.
4040
Equals the dimensionality of the computed feature space.
4141
@@ -146,10 +146,10 @@ class SkewedChi2Sampler(TransformerMixin, BaseEstimator):
146146
147147
Parameters
148148
----------
149-
skewedness : float
149+
skewedness : float, default=1.0
150150
"skewedness" parameter of the kernel. Needs to be cross-validated.
151151
152-
n_components : int
152+
n_components : int, default=100
153153
number of Monte Carlo samples per original feature.
154154
Equals the dimensionality of the computed feature space.
155155
@@ -455,7 +455,7 @@ class Nystroem(TransformerMixin, BaseEstimator):
455455
456456
Parameters
457457
----------
458-
kernel : string or callable, default="rbf"
458+
kernel : string or callable, default='rbf'
459459
Kernel map to be approximated. A callable should accept two arguments
460460
and the keyword arguments passed to this object as kernel_params, and
461461
should return a floating point number.
@@ -477,7 +477,7 @@ class Nystroem(TransformerMixin, BaseEstimator):
477477
Additional parameters (keyword arguments) for kernel function passed
478478
as callable object.
479479
480-
n_components : int
480+
n_components : int, default=100
481481
Number of features to construct.
482482
How many data points will be used to construct the mapping.
483483

0 commit comments

Comments
 (0)
0