Hello everyone,

I actually want to use the KNeighboursClassifier, with my own distances.

in the Documentation stands the following:

[callable] : a user-defined function which accepts an array of distances,
and returns an array of the same shape containing the weights.

I just dont know, how should the array looks like?

For example, if I have 100 Samples, the array has a size 100*100?
So for every samples there is a distance to the other 99 samples.

[[0.4, 0.2, ...],[0.3,0.1,...]........[0.9,0.6,...]]   something like this?

I would appreciate your help.

best,
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to