General questions about ILKNearestNeighbor - Printable Version +- Forums (http://mitov.com/forum) +-- Forum: VCL Components (/forum-6.html) +--- Forum: IntelligenceLab (/forum-39.html) +--- Thread: General questions about ILKNearestNeighbor (/thread-287.html) |
General questions about ILKNearestNeighbor - simon. - 04-10-2012 10:44 PM Hi, I started working with the ILKNearestNeighbor unit. I looked at the wiki and I modified the example to learn a little about its functionality. I have two questions about ILKNearestNeighbor: Why is the example not working with k < 6? Is it possible to change the distance function? Found nothing about that in the wiki... RE: General questions about ILKNearestNeighbor - mitov - 04-23-2012 07:25 AM Hi Simon, It works with less than 6, you simply have probably not changed the : if( AResult.MajorityCount <= 5 ) then line in the demo. The MajorityCount in that case will be 5 or less :-D . In the current version, there is no option for custom distance function, I can add it, and send you updated version. With best regards, Boian Mitov |