8000 DOC add versionadded versionchanged for 0.21 (#16737) · Sastopher/scikit-learn@1d48e52 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 1d48e52

Browse files
ReksbrilMateusz GórskiNicolasHugthomasjpfan
authored andcommitted
DOC add versionadded versionchanged for 0.21 (scikit-learn#16737)
Co-authored-by: Mateusz Górski <mateuszg122@gmail.com> Co-authored-by: Nicolas Hug <contact@nicolas-hug.com> Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
1 parent d7131a3 commit 1d48e52

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
@@ -762,6 +762,9 @@ class AgglomerativeClustering(ClusterMixin, BaseEstimator):
762762
n_connected_components_ : int
763763
The estimated number of connected components in the graph.
764764
765+
.. versionadded:: 0.21
766+
``n_connected_components_`` was added to replace ``n_components_``.
767+
765768
children_ : array-like of shape (n_samples-1, 2)
766769
The children of each non-leaf node. Values less than `n_samples`
767770
correspond to leaves of the tree which are the original samples.
@@ -1006,6 +1009,9 @@ class FeatureAgglomeration(AgglomerativeClustering, AgglomerationTransform):
10061009
n_connected_components_ : int
10071010
The estimated number of connected components in the graph.
10081011
1012+
.. versionadded:: 0.21
1013+
``n_connected_components_`` was added to replace ``n_components_``.
1014+
10091015
children_ : array-like of shape (n_nodes-1, 2 CE66 )
10101016
The children of each non-leaf node. Values less than `n_features`
10111017
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)
0