Efficient Geodesic Nearest Neighbors

前端 未结 1 696
灰色年华
灰色年华 2021-01-16 11:22

Starting with latitude/longitude data (in radians), I’m trying to efficiently find the nearest n neighbors, ideally with geodesic (WGS-84) distance.

Right now I’m u

相关标签:
1条回答
  • 2021-01-16 12:01

    The main reason for why your metric is slow is that it written in Python while other metrics in sklearn are written in Cython/C++/C.

    So as for instance discussed here for Random Forests or here you would have to implement your metric in Cython, fork your own version of BallTree and include your custom metric there.

    0 讨论(0)
提交回复
热议问题