library(amap) set.seed(5) Kmeans(mydata, 5, iter.max=500, nstart=1, method="euclidean")
in the "amap" package and executed several times, but even if the parameters and the initial value are always the same, the clustering results are different each time Kmeans or other cluster methods are launched.
I tried another kmeans function in different packages, but still ...
In fact, I want to use Weka and R together, so I also tried SimpleKMeans in the RWeka package, and this always gives the same value. However, the problem is that I do not know how to store the cluster data together with the cluster number from SimpleKmeans in RWeka, so I am stuck ...
Anyway, how can I keep the clustering result always the same? or How to save the result of clustering with SimpleKMeans in R?
source share