[scikit-learn] Nearest neighbor search with 2 distance measures

Rohin Kumar yrohinkumar at gmail.com
Sun Jul 30 14:18:29 EDT 2017


*update*

May be it doesn't have to be done at the tree creation level. It could be
using loops and creating two different balltrees. Something like

tree1=BallTree(X,metric='metric1') #for x-z plane
tree2=BallTree(X,metric='metric2') #for y-z plane

And then calculate correlation functions in a loop to get tpcf(X,r1,r2)
 using tree1.two_point_correlation(X,r1) and
tree2.two_point_correlation(X,r2)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20170730/4cfb2d3e/attachment.html>


More information about the scikit-learn mailing list