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

Nearest neighbor in python #9

Open
maxnoe opened this issue Jun 14, 2019 · 2 comments
Open

Nearest neighbor in python #9

maxnoe opened this issue Jun 14, 2019 · 2 comments

Comments

@maxnoe
Copy link

maxnoe commented Jun 14, 2019

For example, I once needed code to do fast calculation of nearest-neighbors of a given data point

First google hit for "nearest neighbor" is scikit-learns k nearest neighbor classifier, which links to the BallTree and KDTree classes it uses for neighbor finding:

Little more googling about those algorithms gives you:

Also, researching nearest neighbors in generall, will give you the answer, that a KDTree is one of the most efficient algorithms to do this and googling
kdtree python will yield the scipy implementation as first hit.

@matloff
Copy link
Owner

matloff commented Jun 14, 2019

I did make a point of saying I wasn't interested in the classification app. Thanks for the tip on kdtree. Doesn't surprise me but it didn't come up in my PyPI search, which was my pt.

@maxnoe
Copy link
Author

maxnoe commented Jun 14, 2019

I did make a point of saying I wasn't interested in the classification app.

Yes, but the classification app uses and directly links to what you were looking for.

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

2 participants