📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What does K-means do?

A. Splits data into train and test sets
B. Groups data into K clusters by assigning points to the nearest cluster centre ✅
C. Predicts a label for each point
D. Predicts a continuous value

Correct Answer: B. Groups data into K clusters by assigning points to the nearest cluster centre

Explanation

K-means iteratively assigns points to the closest centroid and updates centroids until the groups stabilise.