cr.sparse.cluster.vq.KMeansSolution¶
- class cr.sparse.cluster.vq.KMeansSolution(centroids: jax.Array, assignment: jax.Array, distortion: float, key: jax.Array, iterations: int)[source]¶
The solution for K-means algorithm
Attributes
assignmentCurrent assignment of points to centroids
centroidsCurrent set of centroids
distortionCurrent mean distance
iterationsThe number of iterations it took to complete
keyThe PRNG key seed for the k-means run with least distortion