Q12Machine Learning
Question
4 marks
Describe the steps involved in the K-Means clustering algorithm.
Answer
K-Means divides data into K clusters by minimizing the variance within each cluster iteratively.
The steps are: 1. Randomly initialize K cluster centroids. 2. Assign each data point to the closest centroid. 3. Recalculate the centroids as the mean of all points assigned to that cluster. 4. Repeat steps 2 and 3 until the centroids no longer change significantly (convergence).