Re: Using different distances for attributes, is it possible?
>No, you can only use a single distance function (though you can
>specify what attributes ranges to use in calculation).
>A distance function has to implement the interface weka.core.DistanceFunction.
It seems like i have to implement a new distance function. I am using 3.6.1
and already tried to use my own distancefunction, but Kmeans insists on Euclidean or
Manhattan distance - and as far as i know, Xmeans is using Kmeans aswell.
So - what can i do?
- Rewrite the Euclidean distance with some extra functionality for Strings?
- Force Kmeans to accept my own distance?
- Something else?
What i'm trying to do is using Euclidean for numeric atrributes and Edit-dist. for String-
attributes and mixing the values for an overall distance. This distance should then be
used by Kmeans and/or Xmeans.