How K-Means works
Each iteration assigns points to their nearest centroid and recomputes each centroid from its assigned points. The process repeats until convergence or the configured iteration limit.
The main visualizer runs the implemented model in your browser and exposes the stored state, predictions, and metrics instead of substituting fabricated demo numbers.