« Return to Thread: Using different distances for attributes, is it possible?

Re: Using different distances for attributes, is it possible?

by Peter Reutemann-3 :: Rate this Message:

Reply to Author | View in Thread

>>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 -

You might want to change the setDistanceFunction method, adding your
distance function to be allowed as well.

> and as far as i know, Xmeans is using Kmeans aswell.

XMeans isn't using KMeans, it's a completely separate implementation.
>From a quick look at the code, there don't seem to be any restrictions
regarding distance functions.

[...]

Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/           Ph. +64 (7) 858-5174

_______________________________________________
Wekalist mailing list
Send posts to: Wekalist@...
List info and subscription status: https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

 « Return to Thread: Using different distances for attributes, is it possible?