8000 DOC add versionadded directive to some estimators (#15849) · scikit-learn/scikit-learn@cc8d2d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit cc8d2d2

Browse files
Reshama Shaikhglemaitre
Reshama Shaikh
authored andcommitted
DOC add versionadded directive to some estimators (#15849)
1 parent a5b67f9 commit cc8d2d2

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

sklearn/cross_decomposition/_pls.py

+6
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,8 @@ class PLSRegression(_PLS):
530530
531531
Read more in the :ref:`User Guide <cross_decomposition>`.
532532
533+
.. versionadded:: 0.8
534+
533535
Parameters
534536
----------
535537
n_components : int, (default 2)
@@ -668,6 +670,8 @@ class PLSCanonical(_PLS):
668670
669671
Read more in the :ref:`User Guide <cross_decomposition>`.
670672
673+
.. versionadded:: 0.8
674+
671675
Parameters
672676
----------
673677
n_components : int, (default 2).
@@ -810,6 +814,8 @@ class PLSSVD(TransformerMixin, BaseEstimator):
810814
811815
Read more in the :ref:`User Guide <cross_decomposition>`.
812816
817+
.. versionadded:: 0.8
818+
813819
Parameters
814820
----------
815821
n_components : int, default 2

sklearn/feature_extraction/image.py

+3
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ def _extract_patches(arr, patch_shape=8, extraction_step=1):
298298
patches = as_strided(arr, shape=shape, strides=strides)
299299
return patches
300300

301+
301302
@deprecated("The function feature_extraction.image.extract_patches has been "
302303
"deprecated in 0.22 and will be removed in 0.24.")
303304
def extract_patches(arr, patch_shape=8, extractio 8000 n_step=1):
@@ -483,6 +484,8 @@ class PatchExtractor(BaseEstimator):
483484
484485
Read more in the :ref:`User Guide <image_feature_extraction>`.
485486
487+
.. versionadded:: 0.9
488+
486489
Parameters
487490
----------
488491
patch_size : tuple of ints (patch_height, patch_width)

sklearn/model_selection/_split.py

+2
Original file line numberDiff line numberDiff line change
@@ -1816,6 +1816,8 @@ class PredefinedSplit(BaseCrossValidator):
18161816
18171817
Read more in the :ref:`User Guide <cross_validation>`.
18181818
1819+
.. versionadded:: 0.16
1820+
18191821
Parameters
18201822
----------
18211823
test_fold : array-like, shape (n_samples,)

sklearn/pipeline.py

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ class Pipeline(_BaseComposition):
4747
4848
Read more in the :ref:`User Guide <pipeline>`.
4949
50+
.. versionadded:: 0.5
51+
5052
Parameters
5153
----------
5254
steps : list

sklearn/preprocessing/_data.py

+2
Original file line numberDiff line numberDiff line change
@@ -2679,6 +2679,8 @@ class PowerTransformer(TransformerMixin, BaseEstimator):
26792679
26802680
Read more in the :ref:`User Guide <preprocessing_transformer>`.
26812681
2682+
.. versionadded:: 0.20
2683+
26822684
Parameters
26832685
----------
26842686
method : str, (default='yeo-johnson')

0 commit comments

Comments
 (0)
0