scipy.spatial.ckdtree running slowly

后端 未结 2 846
遥遥无期
遥遥无期 2021-01-21 02:54

I\'ve been using spatial.cKDTree in scipy to calculate distances between points. It has always run very quickly (~1 s) for my typical data sets (findin

2条回答
  •  梦毁少年i
    2021-01-21 03:13

    In the next release of SciPy, balanced kd-trees will be created with introselect instead of quickselect, which is much faster on structured datasets. If you use cKDTree on a structured data set such as an image or a grid, you can look forward to a major boost in performance. It is already available if you build SciPy from its master branch on GitHub.

提交回复
热议问题