How Could One Implement the K-Means++ Algorithm?

前端 未结 3 1262
無奈伤痛
無奈伤痛 2020-12-04 08:45

I am having trouble fully understanding the K-Means++ algorithm. I am interested exactly how the first k centroids are picked, namely the initialization as the

3条回答
  •  盖世英雄少女心
    2020-12-04 09:05

    One Liner.

    Say we need to select 2 cluster centers, instead of selecting them all randomly{like we do in simple k means}, we will select the first one randomly, then find the points that are farthest to the first center{These points most probably do not belong to the first cluster center as they are far from it} and assign the second cluster center nearby those far points.

提交回复
热议问题