Skip to content

Commit

Permalink
use l2expanded distance in kmeans transform
Browse files Browse the repository at this point in the history
  • Loading branch information
benfred committed Oct 2, 2024
1 parent 9f805cd commit 176c9a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cuml/cuml/cluster/kmeans.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ class KMeans(UniversalBase,
cdef KMeansParams* params = \
<KMeansParams*><size_t>self._get_kmeans_params()

params.metric = CuvsDistanceType.L2SqrtExpanded
params.metric = CuvsDistanceType.L2Expanded

int_dtype = np.int32 if self.labels_.dtype == np.int32 else np.int64

Expand Down

0 comments on commit 176c9a9

Please sign in to comment.