What is the meaning of title "phase" and "num" in the Kmeans function when the display option is on? I kind of guess the "num" representing the number of outliers. Is my guessing right?

 채택된 답변

the cyclist
the cyclist 2016년 10월 4일

0 개 추천

phase refers to "batch update" (1) or "online update" (2). The meaning of these phases is described in the kmeans documentation, in the section Name-Value Pair Arguments section, under "Online Phase".
I believe that num is the number of clusters found after each iteration, but I could not find that stated in the documentation.

댓글 수: 5

Chung-Chi Tsai
Chung-Chi Tsai 2016년 10월 5일
Thank you very much for the answering. It would be kinda of strange if the num represents the number of clusters, since it should be predefined by the users.
the cyclist
the cyclist 2016년 10월 5일
Yeah, that would be strange ... and I got that wrong. :-)
I was able to spend time looking at the code, which is fairly intricate. I'm pretty sure now that for each iteration, num is actually the number of points that moved from their current cluster to a different one. So, for a problem with N points, it will always start at N for the first iteration (because each point is assigned to a brand-new cluster). If one uses online updates, I think it will always end at 0. It might not be 0 if you only use batch updates.
The algorithm is well buried, in the routine kmeans2(), which is called by kmeans. I still couldn't find this referenced in the documentation.
Sorry for the earlier misinformation.
Chung-Chi Tsai
Chung-Chi Tsai 2016년 10월 12일
Thank you very much, cyclist. I would guess the "num" representing the number of uncertain labeling, so as iterations goes up, the uncertainty will go down.
the cyclist
the cyclist 2016년 10월 17일
Yes, I would say that that is a reasonable conceptual way of thinking about it.
Also, the best form of thanks is accepting a solution, which rewards the contributor, and also points future users toward correct solutions.
Chung-Chi Tsai
Chung-Chi Tsai 2016년 11월 6일
Thanks for your answering.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

질문:

2016년 10월 3일

댓글:

2016년 11월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by