KMeans is run with n_init=10. What does that parameter control, and why does the default matter?
Correct answer
C. The number of independent initialisations, with the lowest-inertia run being kept
14 views
C. The number of independent initialisations, with the lowest-inertia run being kept
14 views
n_init repeats k-means from different centroid seeds and keeps the solution with the lowest inertia, because a single run can converge to a poor local optimum. Newer versions default to 'auto', which uses 1 for k-means++ and 10 for random initialisation. Compare n_init=1 with n_init=10 when clustering quality looks unstable across reruns.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is C? Ask here and get an explanation.