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

why there is no option of cosine distance when initialize LSHConstructionParameters? #95

Open
dorioliu opened this issue Mar 10, 2018 · 2 comments

Comments

@dorioliu
Copy link

dorioliu commented Mar 10, 2018

hello
the distance measurement for what i using now is cosine distance , i know FALCONN has good performance in cosine distance, why there is no option of cosine distance when initializes LSHConstructionParameters? only exsisting Eulicdean distance and inner product. i install FALCONN through pip for python. thanks.@ludwigschmidt

@dorioliu
Copy link
Author

I am sorry , i think i should be aware of the problem. squared Euclidean distance is proportional to the cosine distance when using l2-normalized euclidean distance. thanks anyway. so squared Euclidean distance would be ok.

@MrYxJ
Copy link

MrYxJ commented Dec 11, 2020

I am sorry , i think i should be aware of the problem. squared Euclidean distance is proportional to the cosine distance when using l2-normalized euclidean distance. thanks anyway. so squared Euclidean distance would be ok.

I have also encountered this doubt, thank you for your question to help me. And more precisely, the inner product is also proportional to the cosine similarity after normalization. What's the difference between the inner product and the Euclidean distance after normalization?

A-Guldborg pushed a commit to duckth/FOENNIX that referenced this issue May 12, 2024
* added csv files for T1, T2 results

* added link from README to t1.csv and t2.csv

* added T1, T2 plots for neurips results

* remove results/ folder
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