Flight Lab / Learning machines / 02
Lesson 02 of 06 · about 5 min
k-means assigns every point to the nearest center, then replaces each center with the mean of the points that chose it. The two steps repeat. One round is enough to see the centers jump.
Points sit at 1, 2, 10, and 11. Centers start at 1 and 10. Enter the two centers after one assign-and-update.