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

question about sim_scores #36

Open
zedzx1uv opened this issue Dec 17, 2020 · 1 comment
Open

question about sim_scores #36

zedzx1uv opened this issue Dec 17, 2020 · 1 comment

Comments

@zedzx1uv
Copy link

Hi, i find that in your code the sim_score is defined as ‘1-arccos(cos<x1,x2>)=1-<x1,x2>’, which makes me confused.
Why not use cosine similarity? Is it because ‘1-<x1,x2>’ makes them more distinguishable?

@jind11
Copy link
Owner

jind11 commented Dec 17, 2020

This code is borrowed from the official code of "USE". I think it is just because it is closer to the mathematical definition of cosine similarity. I am not sure whether it is really better than cos<x1,x2>.

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