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

Skip to content

Commit 84c4676

Browse files
chritterglemaitre
authored andcommitted
DOC Ensures that linkage_tree passes numpydoc validation (#21424)
* DOC numpydoc removed linkage_tree from FUNCTION_DOCSTRING_IGNORE_LIST * DOC numpydoc fixed linkage_tree func docstring
1 parent 377f1e2 commit 84c4676

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

maint_tools/test_docstrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"sklearn._config.get_config",
2323
"sklearn.base.clone",
2424
"sklearn.cluster._affinity_propagation.affinity_propagation",
25-
"sklearn.cluster._agglomerative.linkage_tree",
2625
"sklearn.cluster._kmeans.k_means",
2726
"sklearn.cluster._kmeans.kmeans_plusplus",
2827
"sklearn.cluster._mean_shift.estimate_bandwidth",

sklearn/cluster/_agglomerative.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,11 +429,11 @@ def linkage_tree(
429429
observations of the two sets.
430430
431431
affinity : str or callable, default='euclidean'
432-
which metric to use. Can be 'euclidean', 'manhattan', or any
432+
Which metric to use. Can be 'euclidean', 'manhattan', or any
433433
distance known to paired distance (see metric.pairwise).
434434
435435
return_distance : bool, default=False
436-
whether or not to return the distances between the clusters.
436+
Whether or not to return the distances between the clusters.
437437
438438
Returns
439439
-------

0 commit comments

Comments
 (0)