Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[MRG] DOC add versionadded directive to some estimators #15849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Dec 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sklearn/cross_decomposition/_pls.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,8 @@ class PLSRegression(_PLS):

Read more in the :ref:`User Guide <cross_decomposition>`.

.. versionadded:: 0.8

Parameters
----------
n_components : int, (default 2)
Expand Down Expand Up @@ -668,6 +670,8 @@ class PLSCanonical(_PLS):

Read more in the :ref:`User Guide <cross_decomposition>`.

.. versionadded:: 0.8

Parameters
----------
n_components : int, (default 2).
Expand Down Expand Up @@ -810,6 +814,8 @@ class PLSSVD(TransformerMixin, BaseEstimator):

Read more in the :ref:`User Guide <cross_decomposition>`.

.. versionadded:: 0.8

Parameters
----------
n_components : int, default 2
Expand Down
3 changes: 3 additions & 0 deletions sklearn/feature_extraction/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ def _extract_patches(arr, patch_shape=8, extraction_step=1):
patches = as_strided(arr, shape=shape, strides=strides)
return patches


@deprecated("The function feature_extraction.image.extract_patches has been "
"deprecated in 0.22 and will be removed in 0.24.")
def extract_patches(arr, patch_shape=8, extraction_step=1):
Expand Down Expand Up @@ -483,6 +484,8 @@ class PatchExtractor(BaseEstimator):

Read more in the :ref:`User Guide <image_feature_extraction>`.

.. versionadded:: 0.9

Parameters
----------
patch_size : tuple of ints (patch_height, patch_width)
Expand Down
2 changes: 2 additions & 0 deletions sklearn/model_selection/_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -1816,6 +1816,8 @@ class PredefinedSplit(BaseCrossValidator):

Read more in the :ref:`User Guide <cross_validation>`.

.. versionadded:: 0.16

Parameters
----------
test_fold : array-like, shape (n_samples,)
Expand Down
2 changes: 2 additions & 0 deletions sklearn/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ class Pipeline(_BaseComposition):

Read more in the :ref:`User Guide <pipeline>`.

.. versionadded:: 0.5

Parameters
----------
steps : list
Expand Down
2 changes: 2 additions & 0 deletions sklearn/preprocessing/_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2679,6 +2679,8 @@ class PowerTransformer(TransformerMixin, BaseEstimator):

Read more in the :ref:`User Guide <preprocessing_transformer>`.

.. versionadded:: 0.20

Parameters
----------
method : str, (default='yeo-johnson')
Expand Down