Why Kmeans function give us give different answer?
Ältere Kommentare anzeigen
I have noticed that kmeans function for one k value in a single run gives different cluster indices than while using in a loop with varying k say from 2:N. I do not understand this. It will be great if it is clear to me.
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 22 Sep. 2014
0 Stimmen
Like many other types of numerical minimizations, the solution that kmeans reaches often depends on the starting points. It is possible for kmeans to reach a local minimum, where reassigning any one point to a new cluster would increase the total sum of point-to-centroid distances, but where a better solution does exist. However, you can use the optional 'replicates' parameter to overcome that problem.
Kategorien
Mehr zu k-Means and k-Medoids Clustering finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!