作者cashpaggy (布丁女孩)
看板MATLAB
標題[問題] kmeans
時間Thu Mar 22 11:36:23 2012
當我使用kmeans的時候
都會出現這個問題
??? Error using ==> kmeans>batchUpdate at 435
Empty cluster created at iteration 2.
Error in ==> kmeans at 336
converged = batchUpdate();
Error in ==> clustering at 20
idx = kmeans(weight_patch, 1000);
應該是執行到第二次分群時
出現沒有資料點的群集
除了改變初始群集數外
有其他方法解決嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.64.91.30
1F:→ ht15trep:'emptyaction' 設定成 'drop' 或 'singleton' 03/22 22:07
2F:→ ht15trep:不然看你的實驗設計為何, 看改 distance 可不可以 03/22 22:09
3F:→ cashpaggy:我試試看~感謝 03/27 10:38