FALCONN icon indicating copy to clipboard operation
FALCONN copied to clipboard

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

Open dorioliu opened this issue 6 years ago • 2 comments

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 avatar Mar 10 '18 15:03 dorioliu

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.

dorioliu avatar Mar 13 '18 12:03 dorioliu

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?

MrYxJ avatar Dec 11 '20 03:12 MrYxJ