Skip to content

Commit

Permalink
Use L2SqrtExpanded in DBSCAN
Browse files Browse the repository at this point in the history
Previously we were using `L2SqrtUnexpanded`, which is more costly.
  • Loading branch information
jcrist committed Feb 14, 2025
1 parent 9ff9139 commit 76d5efb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/cuml/cuml/cluster/dbscan.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ class DBSCAN(UniversalBase,

# metric
metric_parsing = {
"L2": DistanceType.L2SqrtUnexpanded,
"euclidean": DistanceType.L2SqrtUnexpanded,
"L2": DistanceType.L2SqrtExpanded,
"euclidean": DistanceType.L2SqrtExpanded,
"cosine": DistanceType.CosineExpanded,
"precomputed": DistanceType.Precomputed
}
Expand Down

0 comments on commit 76d5efb

Please sign in to comment.