<分区>
我想用 python 计算 K 最近邻。我应该使用什么库?
<分区>
我想用 python 计算 K 最近邻。我应该使用什么库?
最佳答案
我认为你应该使用 scikit ann .
关于最近邻居有一个很好的教程here .
根据文档:
ann is a SWIG-generated python wrapper for the Approximate Nearest Neighbor (ANN) Library (http://www.cs.umd.edu/~mount/ANN/), developed by David M. Mount and Sunil Arya. ann provides an immutable kdtree implementation (via ANN) which can perform k-nearest neighbor and approximate k
关于python - python中的K最近邻,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5565935/