Skip to content

Commit

Permalink
Fix _compute_raw call in KMeans
Browse files Browse the repository at this point in the history
  • Loading branch information
olegkkruglov committed Apr 19, 2024
1 parent 834b94b commit b33e801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onedal/cluster/kmeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _tolerance(self, rtol, X_table, policy, dtype=np.float32):
# TODO: Support CSR in Basic Statistics
dummy = to_table(None)
bs = self._get_basic_statistics_backend("variance")
res = bs.compute_raw(X_table, dummy, policy, dtype)
res = bs._compute_raw(X_table, dummy, policy, dtype)
mean_var = from_table(res["variance"]).mean()
return mean_var * rtol

Expand Down

0 comments on commit b33e801

Please sign in to comment.