K-Means
K-Means
Source header: cuvs/cluster/kmeans.h
k-means hyperparameters
cuvsKMeansInitMethod
k-means hyperparameters
Values
cuvsKMeansParams
Hyper-parameters for the kmeans algorithm
Fields
cuvsKMeansParamsCreate
Allocate KMeans params, and populate with default values
Parameters
Returns
cuvsKMeansParamsDestroy
De-allocate KMeans params
Parameters
Returns
cuvsKMeansType
Type of k-means algorithm.
Values
k-means clustering APIs
cuvsKMeansFit
Find clusters with k-means algorithm.
Initial centroids are chosen with k-means++ algorithm. Empty clusters are reinitialized by choosing new centroids with k-means++ algorithm.
X may reside on either host (CPU) or device (GPU) memory. When X is on the host the data is streamed to the GPU in batches controlled by params->device_buffer_samples.
Parameters
Returns
cuvsKMeansPredict
Predict the closest cluster each sample in X belongs to.
Parameters
Returns
cuvsKMeansClusterCost
Compute cluster cost
Parameters
Returns