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

add nndescent algorithm #445

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Conversation

brj0
Copy link
Contributor

@brj0 brj0 commented Jul 23, 2023

This adds support for nndescent, which is a C++ implementation of pynndescent.

Although single queries are slower compared to the original Python implementation, the build time (which includes the creation of a k-NN graph for the training data) on my machine shows a significant improvement. Here are the results of ann-benchmarks for fashion-mnist-784-euclidean_10_euclidean:

Build time (s) tradeoff

Recall nndescent pynndescent
0.9667 13.609
0.9693 14.184
0.9876 21.162
0.9877 81.0728
0.9997 42.560 111.5696
1.0000 51.341 125.3250

@erikbern
Copy link
Owner

Nice!

@erikbern erikbern merged commit f5ba3ce into erikbern:main Jul 28, 2023
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

Successfully merging this pull request may close these issues.

2 participants