python - python中的K最近邻

标签 python scipy knn

<分区>

我想用 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/

相关文章:

python - Numpy神经网络成本计算: result changes after first run

c++ - LSH 用于基于汉明距离的快速 NN 相似性搜索?

Python:正则表达式:使用一个正则表达式检测连字符的名称和非连字符的名称

python - 如何使用 ctypes 将 void * 来回传递给 python 中的共享库?

python - 将 Django 站点放在另一个 Django 站点的子目录中

python-2.7 - 使用 scipy odeint 及时向后整合

Python - 导入 Scipy 时出错

python - 读取图像并在屏幕上再次显示时格式发生变化

python - 使用 numpy 的 k 最近邻分类器

java - WEKA IBk 错误的 EditDistance 结果(Levenshtein 距离) - JAVA