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?

 Akzeptierte Antwort

the cyclist
the cyclist am 4 Okt. 2016

0 Stimmen

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 Kommentare

Chung-Chi Tsai
Chung-Chi Tsai am 5 Okt. 2016
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 am 5 Okt. 2016
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 am 12 Okt. 2016
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 am 17 Okt. 2016
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 am 6 Nov. 2016
Thanks for your answering.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by