Skip to content

Commit 534f8ae

Browse files
ReksbrilMateusz GórskiNicolasHugthomasjpfan
authored
DOC add versionadded versionchanged for 0.21 (scikit-learn#16737)
Co-authored-by: Mateusz Górski <[email protected]> Co-authored-by: Nicolas Hug <[email protected]> Co-authored-by: Thomas J Fan <[email protected]>
1 parent 192109a commit 534f8ae

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

sklearn/cluster/_agglomerative.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,9 @@ class AgglomerativeClustering(ClusterMixin, BaseEstimator):
763763
n_connected_components_ : int
764764
The estimated number of connected components in the graph.
765765
766+
.. versionadded:: 0.21
767+
``n_connected_components_`` was added to replace ``n_components_``.
768+
766769
children_ : array-like of shape (n_samples-1, 2)
767770
The children of each non-leaf node. Values less than `n_samples`
768771
correspond to leaves of the tree which are the original samples.
@@ -1007,6 +1010,9 @@ class FeatureAgglomeration(AgglomerativeClustering, AgglomerationTransform):
10071010
n_connected_components_ : int
10081011
The estimated number of connected components in the graph.
10091012
1013+
.. versionadded:: 0.21
1014+
``n_connected_components_`` was added to replace ``n_components_``.
1015+
10101016
children_ : array-like of shape (n_nodes-1, 2)
10111017
The children of each non-leaf node. Values less than `n_features`
10121018
correspond to leaves of the tree which are the original samples.

sklearn/ensemble/_voting.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ class VotingClassifier(ClassifierMixin, _BaseVoting):
125125
``self.estimators_``. An estimator can be set to ``'drop'``
126126
using ``set_params``.
127127
128+
.. versionchanged:: 0.21
129+
``'drop'`` is accepted.
130+
128131
.. deprecated:: 0.22
129132
Using ``None`` to drop an estimator is deprecated in 0.22 and
130133
support will be dropped in 0.24. Use the string ``'drop'`` instead.
@@ -372,6 +375,9 @@ class VotingRegressor(RegressorMixin, _BaseVoting):
372375
``self.estimators_``. An estimator can be set to ``'drop'`` using
373376
``set_params``.
374377
378+
.. versionchanged:: 0.21
379+
``'drop'`` is accepted.
380+
375381
.. deprecated:: 0.22
376382
Using ``None`` to drop an estimator is deprecated in 0.22 and
377383
support will be dropped in 0.24. Use the string ``'drop'`` instead.

0 commit comments

Comments
 (0)