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

How to caculate distance with the vectors? #46

Open
mmpang opened this issue Nov 3, 2020 · 3 comments
Open

How to caculate distance with the vectors? #46

mmpang opened this issue Nov 3, 2020 · 3 comments
Labels

Comments

@mmpang
Copy link

mmpang commented Nov 3, 2020

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 ?

@chihming
Copy link
Collaborator

chihming commented Nov 3, 2020

both dot product and cosine similarity are okay

@mmpang
Copy link
Author

mmpang commented Nov 3, 2020

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

@chihming
Copy link
Collaborator

chihming commented Nov 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants