question about k-means clustering metric choice

In this documentation of K-means clustering: https://www.mathworks.com/help/stats/k-means-clustering.html
I would like to ask why the choice of metric is 'cityblock'. May I know what the context of the dataset is and why 'cityblock' is the appropriate choice of metric? Also, I tried to use the ordinary euclidean metric, but returned an error.
Please send your insights. Thanks

댓글 수: 2

Walter Roberson
Walter Roberson 2018년 8월 17일
편집: Walter Roberson 2018년 8월 17일
I do not encounter any errors if I consistently change cityblock to sqeuclidean
cgo
cgo 2018년 8월 17일
found it. I typed 'euclidean' instead of 'sqeuclidean'. Thanks

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

답변 (1개)

Bernhard Suhm
Bernhard Suhm 2018년 10월 3일

0 개 추천

If you have any further questions, follow up. Otherwise, can you kindly "accept" Walter's answer?

댓글 수: 1

I did not post an Answer, so it would not have been possible to Accept it ;-)

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

질문:

cgo
2018년 8월 17일

댓글:

2018년 10월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by