Hyperbolic embedding with adjustable curvature #1098
Unanswered
gabrieldernbach
asked this question in
Q&A
Replies: 1 comment
-
|
It's not actually obvious to me how to do this; if you have some references for the hyperboloid model of hyperbolic space under different curvatures I could look into that. Otherwise I would potentially accept pull requests. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The user guide contains a lovely example for fitting hyperbolic embeddings
https://umap-learn.readthedocs.io/en/latest/embedding_space.html#bonus-embedding-in-hyperbolic-space
hyperbolic_mapper = umap.UMAP(output_metric='hyperboloid', random_state=42).fit(digits.data)As I understand the hyperboloid model, the resulting space has a constant curvature of -1.
The hyperbolic variational autoencoder literature of recent years dominantly tunes the curvature to the data, yielding convincing results.
I was wondering if there is a simple extension to the "hyperboloid" metric that would allow us to set the curvature as well in umap.
umap/umap/distances.py
Line 206 in ebe5051
Checking git-blame @lmcinnes last touched this, maybe you can forward me to the right person?
As the guide explicitly mentions the numerical issues of other models, there is a recent contribution from the VAE literature, that may be of interest in that regard https://arxiv.org/pdf/2209.15217.pdf
Beta Was this translation helpful? Give feedback.
All reactions