APR-CLU-001 // apr-v2-f32

K-Means (Lloyd's Algorithm)

SIMD-accelerated Euclidean vector quantizer minimizing within-cluster sum of squares with deterministic convergence.

K-Means (Lloyd's Algorithm) architecture poster

Runtime: Loading .apr...

Inference: --

Artifact Format
apr-v2-f32
Parameters
8 centroids x 64d
Family
clustering

CLI Execution & Inspection

$ apr run kmeans-lloyd --k 8 --input vectors.json
$ apr inspect kmeans-lloyd.apr --verify-sha256

Mathematical Formulation

Within-Cluster Sum of Squares

J=∑k=1K∑x∈Ck‖x-μk‖22

Numerical Contract

WCSS inertia monotonically non-increasing across every Lloyd assignment/update iteration.