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

Speed up nearest neighbor search #18

Open
dansbits opened this issue Jan 21, 2019 · 0 comments
Open

Speed up nearest neighbor search #18

dansbits opened this issue Jan 21, 2019 · 0 comments

Comments

@dansbits
Copy link
Owner

@carlzimmerman Brought up the fact that the nearest neighbor search used for KNNClassifier and KNNRegression could be sped up. Currently it does a full scan of all points in the training set.

Some potential options for speeding this up is to store training data in a KD tree or a ball tree.

Introduction to KD trees:
https://www.analyticsvidhya.com/blog/2017/11/information-retrieval-using-kdtree/

Introduction to kd trees and ball trees:
https://ashokharnal.wordpress.com/tag/ball-tree-explained-in-simple-manner/

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

No branches or pull requests

1 participant