如何确定 nstart=x 值以了解在寻找质心时应进行多少次尝试?

How to decide on nstart=x value to know how many attempts should be made at finding centroids?

nstart= x。如何才能最好地确定它的值,以了解应该进行多少次尝试才能找到最佳质心?

k2 <- kmeans(data, centers = 2, nstart = 25)

看看这个:

https://www.r-statistics.com/2013/08/k-means-clustering-from-r-in-action/

是该问题的小指南。

BR