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

all_pairs: get *all* pairwise indices, including 0? #19

Open
Antonia-Schmidt opened this issue Oct 27, 2023 · 2 comments
Open

all_pairs: get *all* pairwise indices, including 0? #19

Antonia-Schmidt opened this issue Oct 27, 2023 · 2 comments

Comments

@Antonia-Schmidt
Copy link

I noticed that not all possible pairs are returned when I tried the all_pairs function and that even with threshold = 0.0, the lowest values are still above 0. Is there a possibility to get all pairwise similarities?

@ekzhu
Copy link
Owner

ekzhu commented Dec 1, 2023

That's odd. It may be a bug. Can you post a code to reproduce this?

@Antonia-Schmidt
Copy link
Author

Sure, the minimal example below already returns an empty list instead of a list with one element.

sets = [[1,2,3], [4,5,6]]
pairs = all_pairs(sets, similarity_func_name="jaccard", 
        similarity_threshold=0.0)
list(pairs)

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