From a8c1da90c07e94ae016bba926c5245842dcb9dab Mon Sep 17 00:00:00 2001 From: robert Date: Fri, 20 May 2022 16:58:08 +0200 Subject: [PATCH 1/2] Implement documentation suggestions pairwise distance --- sklearn/metrics/pairwise.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/metrics/pairwise.py b/sklearn/metrics/pairwise.py index 33b2a9901902b..658c14930c370 100644 --- a/sklearn/metrics/pairwise.py +++ b/sklearn/metrics/pairwise.py @@ -1862,7 +1862,7 @@ def pairwise_distances( valid scipy.spatial.distance metrics), the scikit-learn implementation will be used, which is faster and has support for sparse matrices (except for 'cityblock'). For a verbose description of the metrics from - scikit-learn, see the __doc__ of the sklearn.pairwise.distance_metrics + scikit-learn, see :func:`sklearn.metrics.pairwise.pairwise_distances` function. Read more in the :ref:`User Guide `. From f8a198f33e3bef62f4c1e72c877e2b94cd0a97c0 Mon Sep 17 00:00:00 2001 From: Robert Hommes <38126540+RobertHGit@users.noreply.github.com> Date: Sat, 21 May 2022 14:31:41 +0200 Subject: [PATCH 2/2] Update sklearn/metrics/pairwise.py Co-authored-by: Thomas J. Fan --- sklearn/metrics/pairwise.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/metrics/pairwise.py b/sklearn/metrics/pairwise.py index 658c14930c370..934bf9d4e0e4f 100644 --- a/sklearn/metrics/pairwise.py +++ b/sklearn/metrics/pairwise.py @@ -1862,7 +1862,7 @@ def pairwise_distances( valid scipy.spatial.distance metrics), the scikit-learn implementation will be used, which is faster and has support for sparse matrices (except for 'cityblock'). For a verbose description of the metrics from - scikit-learn, see :func:`sklearn.metrics.pairwise.pairwise_distances` + scikit-learn, see :func:`sklearn.metrics.pairwise.distance_metrics` function. Read more in the :ref:`User Guide `.