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

Support for inner product similarity measures (dot product) #265

Open
matt90luo opened this issue May 7, 2021 · 3 comments
Open

Support for inner product similarity measures (dot product) #265

matt90luo opened this issue May 7, 2021 · 3 comments

Comments

@matt90luo
Copy link

Is there any plan to support inner product similarity measures?

@alexklibisz
Copy link
Owner

Is that different from the cosine/angular similarity?

@alexklibisz
Copy link
Owner

Closing to keep things tidy. Feel free to re-open if you have any followup.

@joancf
Copy link

joancf commented Apr 5, 2024

Is that different from the cosine/angular similarity?

Hi,
i think that the dot product could be an improvement in performance, and easy to implement.
As
cosine_similarity(v1,v2) = dot_product(v1/v2)/(||v1|| * ||v2||)

using dot_product simplifies the computation as the magnitude of the vectors are not needed reducing the computation time to 1/3 of the original one,
And most of the funcitonality is there

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

3 participants