-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 method or parameter for returning (itemid, score) tuples #62
Comments
yes this would be great to add as a new method. can you do it :) |
I'm just relaying a request from your annoy-users@ mailing list. Are you on it? |
Just realized I haven't been seeing annoy-user emails. I was registered using my spotify email and then when I signed up again I accidentally hit the "don't send me updates" option. Fixed now so I'll keep an eye on the email list going forward! |
See #93 – should resolve this issue |
Although instead of returning a list of tuples, I return a tuple with two lists. Made the code marginally simpler |
Yeah, that makes sense. More compact in memory too. Cool, thanks Erik. |
It would be nice to be able to iterate over a
get_nns
call with not just the itemid but the score also, especially as it's available to the C++ code; currently you have to reconstruct the score manually by normalizing and taking your own dot product in numpy or something.The text was updated successfully, but these errors were encountered: