Skip to content

Commit 19dd7ca

Browse files
committed
Change metric to fast_sqeuclidean for pairwise_distances_argmin*
1 parent 2f02350 commit 19dd7ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sklearn/metrics/pairwise.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ def _argmin_reduce(dist, start):
584584

585585

586586
def pairwise_distances_argmin_min(
587-
X, Y, *, axis=1, metric="euclidean", metric_kwargs=None
587+
X, Y, *, axis=1, metric="fast_euclidean", metric_kwargs=None
588588
):
589589
"""Compute minimum distances between one point and a set of points.
590590
@@ -692,7 +692,9 @@ def pairwise_distances_argmin_min(
692692
return indices, values
693693

694694

695-
def pairwise_distances_argmin(X, Y, *, axis=1, metric="euclidean", metric_kwargs=None):
695+
def pairwise_distances_argmin(
696+
X, Y, *, axis=1, metric="fast_euclidean", metric_kwargs=None
697+
):
696698
"""Compute minimum distances between one point and a set of points.
697699
698700
This function computes for each row in X, the index of the row of Y which

0 commit comments

Comments
 (0)