Effacer les filtres
Effacer les filtres

rectify error in kmeans

1 vue (au cours des 30 derniers jours)
Elysi Cochin
Elysi Cochin le 12 Jan 2013
i wanted to do kmeans clustering in mammogram image.... i took the datavector of the image and gave as input to kmeans.... when i execute the code error is displayed as...."An empty cluster error occurred in every replicate.".... what should i do to rectify this error....

Réponse acceptée

Tom Lane
Tom Lane le 14 Jan 2013
The kmeans function has an option 'EmptyAction' that you could try. With this option you can request that, if a cluster becomes empty, the function either accept a smaller number of clusters or create a new one from a point that is relatively far from the others.
  1 commentaire
Elysi Cochin
Elysi Cochin le 16 Jan 2013
thank u sir....

Connectez-vous pour commenter.

Plus de réponses (1)

Greg Heath
Greg Heath le 13 Jan 2013
Reduce k by 1.
Hope this helps.
Thank you for formally accepting my answer.
Greg
  1 commentaire
Elysi Cochin
Elysi Cochin le 14 Jan 2013
no sir i didnt get it.... still that error....

Connectez-vous pour commenter.

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by