Skip to content

Commit 219b406

Browse files
authored
Fix Invalid Kmeans parameters on oneAPI 2023 (#1345)
1 parent 4356c8d commit 219b406

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

AI-and-Analytics/Features-and-Functionality/IntelPython_daal4py_DistributedKMeans/IntelPython_daal4py_Distributed_Kmeans.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@
9797

9898

9999
# compute the clusters/centroids
100-
kmeans_result = d4p.kmeans(nClusters = 3, maxIterations = 5, assignFlag = True).compute(X, init_result.centroids)
100+
kmeans_result = d4p.kmeans(nClusters = 3, maxIterations = 5, assignFlag = True,
101+
accuracyThreshold = 5.0e-6, gamma = 1.0).compute(X, init_result.centroids)
101102

102103

103104
# To **get Kmeans result objects** (assignments, centroids, goalFunction [deprecated], nIterations, and objectiveFunction):

0 commit comments

Comments
 (0)