k-means correlation Distance metric

Hi
I want to use k-means with different distance metric. The node K-means just using the Euclidean distance metric.
I want to use k-means with correlation distance metric. How I can do that?

Malik

Hi Malik,

you would need to use the k-medoid for this.
I made you an example which is downloadable here:

https://hub.knime.com/iris/space/ExamplesForTheForum/2019_08_07_K_MeansWithDistances

Cheers, Iris

3 Likes

Hi @Iris
How this is related to using the correlation as a distance function?
I want it similar to Kmeans of Matlab

'Distance' — Distance metric

'sqeuclidean' (default) | 'cityblock' | 'cosine' | 'correlation' | 'hamming'

The node " Numeric Distance" does not contain correlation distance

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.