Machine Learning
Fitting the model…
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Machine Learning
Fitting the model…
Assign each point to its nearest centre, move each centre to its points' mean, repeat. Watch the objective fall at every half-step, a bad start get trapped, and why the lowest J cannot choose k.
45 points and no labels. Clustering asks for k groups; k-means describes each group by a centre and scores a choice of centres by J — the sum of squared distances from every point to its own centre. Low J means tight groups. Here k = 3.