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

Skip to content

Commit 9c119e6

Browse files
amuellerogrisel
authored andcommitted
deprecation of n_components happened in 0.19 not 0.18 (#9527)
1 parent 5c6cc88 commit 9c119e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/cluster/hierarchical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def linkage_tree(X, connectivity=None, n_components='deprecated',
369369
ward_tree : hierarchical clustering with ward linkage
370370
"""
371371
if n_components != 'deprecated':
372-
warnings.warn("n_components was deprecated in 0.18"
372+
warnings.warn("n_components was deprecated in 0.19"
373373
"will be removed in 0.21", DeprecationWarning)
374374

375375
X = np.asarray(X)

0 commit comments

Comments
 (0)