8000 DOC standardized formatting for default values in transformer class. … · jayzed82/scikit-learn@4234c43 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4234c43

Browse files
ezebunanduSam Ezebunandu
authored andcommitted
DOC standardized formatting for default values in transformer class. (scikit-learn#17505)
* DOC_standardized formatting for default values in transformer class. * DOC_use type bool instead of boolean Co-authored-by: Sam Ezebunandu <samuel.ezebunandu@outlook.com>
1 parent 6abc199 commit 4234c43

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sklearn/preprocessing/_function_transformer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ class FunctionTransformer(TransformerMixin, BaseEstimator):
2828
2929
Parameters
3030
----------
31-
func : callable, optional default=None
31+
func : callable, default=None
3232
The callable to use for the transformation. This will be passed
3333
the same arguments as transform, with args and kwargs forwarded.
3434
If func is None, then func will be the identity function.
3535
36-
inverse_func : callable, optional default=None
36+
inverse_func : callable, default=None
3737
The callable to use for the inverse transformation. This will be
3838
passed the same arguments as inverse transform, with args and
3939
kwargs forwarded. If inverse_func is None, then inverse_func
4040
will be the identity function.
4141
42-
validate : bool, optional default=False
42+
validate : bool, default=False
4343
Indicate that the input X array should be checked before calling
4444
``func``. The possibilities are:
4545
@@ -51,7 +51,7 @@ class FunctionTransformer(TransformerMixin, BaseEstimator):
5151
.. versionchanged:: 0.22
5252
The default of ``validate`` changed from True to False.
5353
54-
accept_sparse : boolean, optional
54+
accept_sparse : bool, default=False
5555
Indicate that func accepts a sparse matrix as input. If validate is
5656
False, this has no effect. Otherwise, if accept_sparse is false,
5757
sparse matrix inputs will cause an exception to be raised.
@@ -63,12 +63,12 @@ class FunctionTransformer(TransformerMixin, BaseEstimator):
6363
6464
.. versionadded:: 0.20
6565
66-
kw_args : dict, optional
66+
kw_args : dict, default=None
6767
Dictionary of additional keyword arguments to pass to func.
6868
6969
.. versionadded:: 0.18
7070
71-
inv_kw_args : dict, optional
71+
inv_kw_args : dict, default=None
7272
Dictionary of additional keyword arguments to pass to inverse_func.
7373
7474
.. versionadded:: 0.18

0 commit comments

Comments
 (0)
0