K-means is an unsupervised clustering method.
- Initialization: Randomly select cluster centroids.
- Assignment: Each data point is assigned to the nearest centroid, forming clusters.
- Update: Recalculate the centroid of each cluster by averaging the points within it.
- Repeat until centroids no longer change (or max number of iterations reached.)