diff --git a/maint_tools/test_docstrings.py b/maint_tools/test_docstrings.py index a658f13ac8912..55e7c3e18fbde 100644 --- a/maint_tools/test_docstrings.py +++ b/maint_tools/test_docstrings.py @@ -23,7 +23,6 @@ "sklearn._config.get_config", "sklearn.base.clone", "sklearn.cluster._affinity_propagation.affinity_propagation", - "sklearn.cluster._agglomerative.linkage_tree", "sklearn.cluster._kmeans.k_means", "sklearn.cluster._kmeans.kmeans_plusplus", "sklearn.cluster._mean_shift.estimate_bandwidth", diff --git a/sklearn/cluster/_agglomerative.py b/sklearn/cluster/_agglomerative.py index 01799048a7f6b..a4a22c73e182f 100644 --- a/sklearn/cluster/_agglomerative.py +++ b/sklearn/cluster/_agglomerative.py @@ -429,11 +429,11 @@ def linkage_tree( observations of the two sets. affinity : str or callable, default='euclidean' - which metric to use. Can be 'euclidean', 'manhattan', or any + Which metric to use. Can be 'euclidean', 'manhattan', or any distance known to paired distance (see metric.pairwise). return_distance : bool, default=False - whether or not to return the distances between the clusters. + Whether or not to return the distances between the clusters. Returns -------