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

Embedding quality #81

Open
drei34 opened this issue Aug 23, 2024 · 0 comments
Open

Embedding quality #81

drei34 opened this issue Aug 23, 2024 · 0 comments

Comments

@drei34
Copy link

drei34 commented Aug 23, 2024

Hi,

I am looking into embedding quality and a bit confused by the behavior. I did a preserve_distances on a graph and am computing quality metrics when I use the embedding and cosine similarity. From what I see, this is doing pretty well as 1-hop neighbors are at the front, then 2-hop, etc. However, I am not sure if this makes total sense. I take the object mde.X and then normalize so each embedding has L2 norm 1 so I can use cosine similarity. Using this, the results look good but if I don't normalize this is not the case. However, as I understand it, the default settings use squared norm to try and get two embeddings to be the same as the shortest path distance. Is this true? Why would normalizing like above lead to much better answers than if you don't normalize bc the embeddings in the optimization are not normalized. Should you always work with L2 normalized embeddings? Thank you! I guess what I am also asking is just a validation of my understanding of the objective function ...

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

1 participant