smore icon indicating copy to clipboard operation
smore copied to clipboard

How to caculate distance with the vectors?

Open mmpang opened this issue 4 years ago • 3 comments

I got the user vector and item vector with nemf(collaborative similarity embedding),which distance should I use to do ann search,inner product (dot product) or cosine distance or Euclidean distance ?

mmpang avatar Nov 03 '20 07:11 mmpang

both dot product and cosine similarity are okay

chihming avatar Nov 03 '20 08:11 chihming

@chihming Thanks for your reply. Another question, in a recommander system, can i do u2i or i2i retrieval with the vectors directly ?

mmpang avatar Nov 03 '20 08:11 mmpang

yes, such vector-based retrieval is able to achieve a reasonable performance

chihming avatar Nov 03 '20 10:11 chihming