필터 지우기
필터 지우기

rectify error in kmeans

조회 수: 1 (최근 30일)
Elysi Cochin
Elysi Cochin 2013년 1월 12일
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....

채택된 답변

Tom Lane
Tom Lane 2013년 1월 14일
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
Elysi Cochin
Elysi Cochin 2013년 1월 16일
thank u sir....

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Greg Heath
Greg Heath 2013년 1월 13일
Reduce k by 1.
Hope this helps.
Thank you for formally accepting my answer.
Greg
  댓글 수: 1
Elysi Cochin
Elysi Cochin 2013년 1월 14일
no sir i didnt get it.... still that error....

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by