Reputation: 723
I am using scipy.cluster.vq.kmeans2
which, by definition, initializes the K-means randomly (given the pre-defined initialization method - random, points).
Is there a way to make the initialization stable, i.e., for the same initial centroids to obtain the same clustering results, but without using minit='matrix'
? I really don't know what the initial point are but I want them to be the same for all simulations runs (e.g. for reproducible outputs).
Upvotes: 1
Views: 474