Starting K-Means and Choosing K

Starting centres matter because Lloyd's algorithm stops at a local optimum: pick random data points and keep the best of several runs, or use k-means++, which spreads the starting centres out by sampling in proportion to squared distance and comes with an O(log K) guarantee. To choose K, the objective alone always prefers more clusters, so add a penalty (the elbow, AIC or BIC).

Machine Learning Techniques

Sign up free to read the rest of this lesson