Empty cluster at iteration 2
1 回表示 (過去 30 日間)
古いコメントを表示
Hi I am using [idx,C] = kmeans(X,k), but sometimes it shows the error empty cluster at iteration 2. What is the possible cause of error and how to resolve it ?
0 件のコメント
回答 (1 件)
Walter Roberson
2015 年 6 月 13 日
2 件のコメント
Walter Roberson
2015 年 6 月 13 日
You may wish to change EmptyAction, such as 'EmptyAction', 'singleton'
Singletons usually do not end up gathering neighbors, and so usually indicate that the starting locations were not well chosen for the data. The starting locations are random by default and other than taking into account the range of the data, the random locations do not take into account the local density of the data.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!