Learn Before
Concept
Algorithm of K-means Clustering
- Randomly assign a number, from 1 to K, to each of the observations. These serve as initial cluster assignments for the observations.
- Iterate until the cluster assignments stop changing:
- (a) For each of the K clusters, compute the cluster centroid. The kth cluster centroid is the vector of the p feature means for the observations in the kth cluster.
- (b) Assign each observation to the cluster whose centroid is closest
0
3
Updated 2020-03-11
Tags
Data Science
Related
How might K-means be used in conjunction with supervised methods to predict on an unlabeled data set?
Medium: Difference between K-Means and KNN
Math/Python Explanation: Difference Between K-Means and KNN
Algorithm of K-means Clustering
Image of K-Means Clustering Process
Limitations of K-means clustering
Advantages of K-means clustering
Picking optimal k value
The Elbow Method for Selecting Optimal K
Hands-On Machine Learning with R: Chapter 20 K-means Clustering