📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

How is k-means usually initialised in practice?

A. By choosing initial centroids carefully, for example with k-means++ which spreads them apart ✅
B. By setting all centroids to zero
C. By using the class labels
D. By choosing centroids at random only once and never repeating

Correct Answer: A. By choosing initial centroids carefully, for example with k-means++ which spreads them apart

Explanation

K-means++ picks the first centroid at random and later centroids with probability proportional to their distance from existing centroids.