[go: nahoru, domu]

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

fixes jaccard bug #417

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fixes jaccard bug #417

wants to merge 1 commit into from

Conversation

afleisc
Copy link
Collaborator
@afleisc afleisc commented May 29, 2024

Closes #383

@afleisc afleisc requested a review from danieldeleo May 29, 2024 21:07
@afleisc
Copy link
Collaborator Author
afleisc commented May 29, 2024
const la = (sa.length > sb.length) ? sa.length : sb.length
const lb = (sa.length > sb.length) ? sb.length : sa.length

was added as an optimization to the double for loop but introduces a bug.

The incorrect loop limits could cause the intersection count (intersectSize) to be inaccurate, as not all possible character pairs were being compared.

@afleisc
Copy link
Collaborator Author
afleisc commented Jun 10, 2024

/gcbrun

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.

Bug: Jaccard UDF giving incorrect results in some cases
1 participant