Map 2 · Unsupervised learning · Step 2
Assign and update
How does K-means find the groups?
Key formula
Assign each point to its nearest centroid, move each centroid to its cluster's mean, repeat.
Fact or figure
Neither step can increase , so the algorithm always stops.
Skip this step and…
Feed it category codes (red = 1, green = 2) and the "means" are meaningless.
Telco example
With K = 3, Telco's customers settle into heavy streamers, big talkers and light users.
Learn it
Taught in Section 6 (Clustering and Support Vector Machines) of the course. The map follows the machine learning workflow, the order you build a model in; the course teaches in the order that is easiest to learn, so the numbers can jump.