Closed sanchit-ahuja closed 2 years ago
I think that the error is unrelated to your weight file. It has to do with the number of dimensions you are setting for the embeddings. For products of manifolds, usually it is better to set an even value (dim % 2 == 0).
I am preprocessing a custom list of graphs. Is there a dim argument for the custom graph as well? And how do we know which value to set for the graph? For example, what will be the value of dim for the above graph?
@fedelopez77 Anything regarding the above?
Not sure that I follow what you mean. You can learn graph embeddings of any chosen dimensionality for any input graph. Depending on the structure of the graph, in some cases, you will need higher dimensions to achieve accurate embeddings. For simple graphs, probably 2, 3, or 4 dims might be enough.
How do we set the dimensionality of the custom graph? Do we use the DIMS
flag here as well?
The above issue is fixed. I had to use the dims dimension for training to gather embeddings. Thanks!
Hi, I have been able to generate graph embeddings for my normal 2D graph with unitary weight for
euclidean
,poincare
,lorentz
andsphere
manifolds but unable to do so for product type manifolds. I get the below error forprod-hyhy
andprod-hyeu
manifolds:error: The last dimension should be equal to 2, but got 3
And this for
prod-hysph
:ValueError: Manifold only consists of isolated points when subspace is 1-dimensional.
This is my custom graph:
Should I remove the weight dimension from the graph for it to make it work? If yes, do the embeddings keep the unitary weight in mind while calculating the embeddings? Thanks a lot for all your help!