
Default parameters for GPU k-means
params_kmeans_gpu.RdDefault parameters for GPU k-means
Arguments
- k_means_algorithm
String. The k-means algorithm.
"emeans"(Bessa et al., 2026) runs mini-batch EMA updates and ignoresk_means_iterandfixed."lloyd"is Lloyd's algorithm. Both seed throughk_means_init. 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. Number of k-means iterations. Lloyd's only. Defaults to
50L.- k_means_init
String or
NULL. Initialisation method. One of"random","parallel", or"plusplus". IfNULL, determined on the Rust side. Defaults toNULL.- metric
String. The distance metric. One of
c("euclidean", "cosine"). Defaults to"euclidean".- fixed
Boolean. Shall the algorithm be run for a fixed number of iterations, without checking for convergence. Defaults to
FALSE.- quantise
Boolean. Whether to quantise data to
fp16before clustering. This can improve performance in circumstances where it is memory bound. Defaults toFALSE.
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_iterandfixed."lloyd"is Lloyd's algorithm. Both seed throughk_means_init. 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. Number of k-means iterations. Lloyd's only. Defaults to
50L.k_means_init - String or
NULL. Initialisation method. One of"random","parallel", or"plusplus". IfNULL, determined on the Rust side. Defaults toNULL.metric - String. The distance metric. One of
c("euclidean", "cosine"). Defaults to"euclidean".fixed - Boolean. Shall the algorithm be run for a fixed number of iterations, without checking for convergence. Defaults to
FALSE.quantise - Boolean. Whether to quantise data to
fp16before clustering. This can improve performance in circumstances where it is memory bound. Defaults toFALSE.