Skip to content

Commit 3ca653a

Browse files
natashaborders-zzjnothman
authored andcommitted
DOC adding versionadded labels to several estimators (scikit-learn#15476)
1 parent cf21cf0 commit 3ca653a

18 files changed

Lines changed: 48 additions & 0 deletions

File tree

‎sklearn/cluster/_birch.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ class Birch(ClusterMixin, TransformerMixin, BaseEstimator):
330330
331331
Read more in the :ref:`User Guide <birch>`.
332332
333+
.. versionadded:: 0.16
334+
333335
Parameters
334336
----------
335337
threshold : float, default 0.5

‎sklearn/decomposition/_factor_analysis.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ class FactorAnalysis(TransformerMixin, BaseEstimator):
5353
5454
Read more in the :ref:`User Guide <FA>`.
5555
56+
.. versionadded:: 0.13
57+
5658
Parameters
5759
----------
5860
n_components : int | None

‎sklearn/decomposition/_incremental_pca.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ class IncrementalPCA(_BasePCA):
3737
3838
Read more in the :ref:`User Guide <IncrementalPCA>`.
3939
40+
.. versionadded:: 0.16
41+
4042
Parameters
4143
----------
4244
n_components : int or None, (default=None)

‎sklearn/dummy.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class DummyClassifier(MultiOutputMixin, ClassifierMixin, BaseEstimator):
2929
3030
Read more in the :ref:`User Guide <dummy_estimators>`.
3131
32+
.. versionadded:: 0.13
33+
3234
Parameters
3335
----------
3436
strategy : str, default="stratified"
@@ -389,6 +391,8 @@ class DummyRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
389391
390392
Read more in the :ref:`User Guide <dummy_estimators>`.
391393
394+
.. versionadded:: 0.13
395+
392396
Parameters
393397
----------
394398
strategy : str

‎sklearn/ensemble/_bagging.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,8 @@ class BaggingClassifier(ClassifierMixin, BaseBagging):
452452
453453
Read more in the :ref:`User Guide <bagging>`.
454454
455+
.. versionadded:: 0.15
456+
455457
Parameters
456458
----------
457459
base_estimator : object or None, optional (default=None)
@@ -852,6 +854,8 @@ class BaggingRegressor(RegressorMixin, BaseBagging):
852854
853855
Read more in the :ref:`User Guide <bagging>`.
854856
857+
.. versionadded:: 0.15
858+
855859
Parameters
856860
----------
857861
base_estimator : object or None, optional (default=None)

‎sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,8 @@ class HistGradientBoostingRegressor(RegressorMixin, BaseHistGradientBoosting):
672672
673673
Read more in the :ref:`User Guide <histogram_based_gradient_boosting>`.
674674
675+
.. versionadded:: 0.21
676+
675677
Parameters
676678
----------
677679
loss : {'least_squares', 'least_absolute_deviation'}, \
@@ -850,6 +852,8 @@ class HistGradientBoostingClassifier(BaseHistGradientBoosting,
850852
851853
Read more in the :ref:`User Guide <histogram_based_gradient_boosting>`.
852854
855+
.. versionadded:: 0.21
856+
853857
Parameters
854858
----------
855859
loss : {'auto', 'binary_crossentropy', 'categorical_crossentropy'}, \

‎sklearn/ensemble/_weight_boosting.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ class AdaBoostClassifier(ClassifierMixin, BaseWeightBoosting):
294294
295295
Read more in the :ref:`User Guide <adaboost>`.
296296
297+
.. versionadded:: 0.14
298+
297299
Parameters
298300
----------
299301
base_estimator : object, optional (default=None)
@@ -858,6 +860,8 @@ class AdaBoostRegressor(RegressorMixin, BaseWeightBoosting):
858860
859861
Read more in the :ref:`User Guide <adaboost>`.
860862
863+
.. versionadded:: 0.14
864+
861865
Parameters
862866
----------
863867
base_estimator : object, optional (default=None)

‎sklearn/feature_extraction/_hashing.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ class FeatureHasher(TransformerMixin, BaseEstimator):
4343
4444
Read more in the :ref:`User Guide <feature_hashing>`.
4545
46+
.. versionadded:: 0.13
47+
4648
Parameters
4749
----------
4850
n_features : integer, optional

‎sklearn/isotonic.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ class IsotonicRegression(RegressorMixin, TransformerMixin, BaseEstimator):
156156
157157
Read more in the :ref:`User Guide <isotonic>`.
158158
159+
.. versionadded:: 0.13
160+
159161
Parameters
160162
----------
161163
y_min : optional, default: None

‎sklearn/kernel_approximation.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@ class Nystroem(TransformerMixin, BaseEstimator):
437437
438438
Read more in the :ref:`User Guide <nystroem_kernel_approx>`.
439439
440+
.. versionadded:: 0.13
441+
440442
Parameters
441443
----------
442444
kernel : string or callable, default="rbf"

0 commit comments

Comments
 (0)