Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions python/cuml/cuml/cluster/kmeans.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,10 @@ class KMeans(Base,

# Prepare for libcuml call
cdef handle_t* handle_ = <handle_t *><size_t>self.handle.getHandle()

if multigpu and self.init == "k-means++":
raise ValueError("k-means++ init not supported for multi-GPU KMeans")
Comment thread
viclafargue marked this conversation as resolved.
Outdated

cdef lib.KMeansParams params
_kmeans_init_params(self, params)
n_iter = _kmeans_fit(handle_[0], params, X_m, sample_weight_m, centers)
Expand Down
Loading