
K-mean parameter defaults.
params_kmeans_defaults.RdHelper function to generate defaults for the k-mean clustering were more control is needed.
Value
A named list with the following elements:
k_means_algorithm - String. The k-means algorithm.
"emeans"(Bessa et al., 2026) runs mini-batch EMA updates and ignoresk_means_iter,k_means_init,gemmandhamerly."lloyd"is Lloyd's algorithm. One ofc("emeans", "lloyd"). Defaults to"emeans".e_means_epochs - Numeric or
NULL. e-means only. Passes over the data.NULLtakes the Rust default of 5. Defaults toNULL.k_means_iter - Integer. The number of iterations to use for the clustering. Defaults to
30L.k_means_init - String. The initialisation. One of
c("parallel", "random"). Defaults to"parallel".gemm - Boolean or
NULL. Controls which CPU implementation is used by the method. GEMM is faster with large dimensionality. Defaults toFALSE.hamerly - Boolean or
NULL. Shall a faster exact method be used leveraging the triangle inequality. Faster on large data sets with large numbers of centroids. Defaults toTRUE.