MATLAB Answers

How to evaluate the performance of K-means?

18 views (last 30 days)
Salad Box
Salad Box on 4 Dec 2019
Edited: Adam Danz on 4 Dec 2019
Hi,
I would like to evaluate the performance of k-means. I saw the below cost function (1) online, where wik=1 for data point xi if it belongs to cluster k; otherwise, wik=0. Also, μk is the centroid of xi’s cluster. But I don't know what 'm' is.
Does anyone understand what 'm' is in the below cost function?

  0 Comments

Sign in to comment.

Accepted Answer

Adam Danz
Adam Danz on 4 Dec 2019
Edited: Adam Danz on 4 Dec 2019
"...where wik=1 for data point xi..."
That would suggest that m is the number of data points since that summation is iterating over i.
Indeed, this is the correct interpretation (source).

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by