question about k-means clustering metric choice

2 views (last 30 days)
In this documentation of K-means clustering:
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
cgo on 17 Aug 2018
found it. I typed 'euclidean' instead of 'sqeuclidean'. Thanks

Sign in to comment.

Answers (1)

Bernhard Suhm
Bernhard Suhm on 3 Oct 2018
If you have any further questions, follow up. Otherwise, can you kindly "accept" Walter's answer?
  1 Comment
Walter Roberson
Walter Roberson on 3 Oct 2018
I did not post an Answer, so it would not have been possible to Accept it ;-)

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by