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

chapter-4/2-similarity-search-level-2.ipynb Annoy section never loaded index after initializing, inaccurate performance measure #165

Open
gitgithan opened this issue Feb 11, 2023 · 0 comments

Comments

@gitgithan
Copy link

gitgithan commented Feb 11, 2023

u = AnnoyIndex(2048)
%timeit u.get_nns_by_vector(feature_list[random_image_index], 5, include_distances=True)

The above code appeared a few times.
u.load('data/caltech101index.ann') is missing. Without it all returned indexes are empty. Performance measures are for an empty index, and are inaccurate (faster compared to with index loaded) by 10x on my CPU.

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