2013/1/21 Thomas Dent <[email protected]>:
> my question was whether the 'distance' function used for weighting returns 
> the Minkowski distance as defined in Wikipedia, or instead the p-th power of 
> it.

Good question. Judging from the code, it would seem that only
Euclidean distance is specialized when the brute force algorithm is
used; I'm not sure about the ball tree algorithm. This may lead to
inconsistent results when distance weighting is enabled.

-- 
Lars Buitinck
Scientific programmer, ILPS
University of Amsterdam

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to