K-means

\(k\):

the data — colors = current clusters, ✚ = the k means, dashes = “nearest mean” cells

the loss, after every half-step