[問題] kmeans

看板MATLAB作者 (布丁女孩)時間14年前 (2012/03/22 11:36), 編輯推噓0(003)
留言3則, 2人參與, 最新討論串1/1
當我使用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

03/22 22:07, , 1F
'emptyaction' 設定成 'drop' 或 'singleton'
03/22 22:07, 1F

03/22 22:09, , 2F
不然看你的實驗設計為何, 看改 distance 可不可以
03/22 22:09, 2F

03/27 10:38, , 3F
我試試看~感謝
03/27 10:38, 3F
文章代碼(AID): #1FQfuvsA (MATLAB)
文章代碼(AID): #1FQfuvsA (MATLAB)