Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to approximate KNN with spatial coherence to match original better. #1

Open
MarcoForte opened this issue Dec 8, 2016 · 0 comments

Comments

@MarcoForte
Copy link
Owner

MarcoForte commented Dec 8, 2016

The original code uses an approximate nearest neighbour with two levels of spatial coherence. The approximation is gotten by limiting the number of comparisons in the NN search, outlined here http://www.vlfeat.org/matlab/vl_kdtreequery.html

Sklearn doesn't have the 'MAXNUMCOMPARISONS' parameter. The Annoy library does https://github.com/spotify/annoy. It seems like it would use less memory and be faster.
Another possibility is this library, https://github.com/primetang/pyflann

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant