我在weka上使用k最近邻分类器(http://weka.sourceforge.net/doc.dev/weka/classifiers/lazy/IBk.html).
我想欧几里德距离是默认的距离函数.我如何更改该功能并使用与我自己的距离函数相同的类?
谢谢,
马尔科
IBk.getNearestNeighbourSearchAlgorithm().setDistanceFunction()
似乎就是你所需要的。
查看http://weka.sourceforge.net/doc.dev/weka/core/DistanceFunction.html