running k-means and getting different results run after run?
Show older comments
I am running k-means clustering algorithm on a data, and I don't understand why I am getting different silhouette plots each time I run this. Is there a way to stabilise this? (or set the number of iterations) so I get the same results?
3 Comments
Pieter Hamming
on 17 Aug 2018
Generally, k-means clustering generates different results depending on starting conditions; that's why you'd normally run it a few times with randomized starting conditions.
I don't know the specific MATLAB implementation of k-means, but I'd assume it runs multiple times with random initialization.
Could you give an example of your data/results so we can see if the issue is in the (application of the) algorithm or in the data?
cgo
on 17 Aug 2018
cgo
on 17 Aug 2018
Accepted Answer
More Answers (0)
Categories
Find more on k-Means and k-Medoids Clustering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
