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

Jaccard Similarity of arrays #48770

Closed
alexey-milovidov opened this issue Apr 14, 2023 · 1 comment · Fixed by #50076
Closed

Jaccard Similarity of arrays #48770

alexey-milovidov opened this issue Apr 14, 2023 · 1 comment · Fixed by #50076
Assignees
Labels
feature minor Priority: minor

Comments

@alexey-milovidov
Copy link
Member

Use case

Brute-force similarity search.

Describe the solution you'd like

See the implementation of the arrayIntersect function.

Describe alternatives you've considered

CREATE FUNCTION arrayJaccardIndex AS (a, b) -> size(arrayIntersect(a, b)) / (size(a) + size(b) - size(arrayIntersect(a, b)))
@alexey-milovidov alexey-milovidov added feature minor Priority: minor labels Apr 14, 2023
@FFFFFFFHHHHHHH
Copy link
Contributor

I'd like to have a try :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature minor Priority: minor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants