R: Clustering results are different everytime I run

后端 未结 3 1851
陌清茗
陌清茗 2020-12-17 04:51
library(amap)
set.seed(5)
Kmeans(mydata, 5, iter.max=500, nstart=1, method=\"euclidean\")

in \'amap\' package and run several times, but even thoug

3条回答
  •  醉梦人生
    2020-12-17 04:57

    Just a reminder that K-mean results are sensitive to the order of the data points in the data set. If you run again the proper code with randomized data points you will get a different result

提交回复
热议问题