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

get_edge_weight() for SDNE is out of bound #77

Open
JoyXu123 opened this issue Oct 15, 2019 · 2 comments
Open

get_edge_weight() for SDNE is out of bound #77

JoyXu123 opened this issue Oct 15, 2019 · 2 comments

Comments

@JoyXu123
Copy link

Hello, I am running the SDNE to get the node embeddings of two nodes. And then I call the embedding.get_edge_weight(node1, node2) to get the edge weights for the edge between the two nodes. However, it gives me an index out of bound error. Is there a fix for this error?
Thank you very much!
to_attach

@palash1992
Copy link
Owner

Are you running it on your own data set? Is the graph connected? Ideally S_hat should be nXn where n is the number of nodes with the caveat that the input should be connected. Let me know if any of these is not the case.

@JoyXu123
Copy link
Author

Hi Palash!
Thank you very much for your reply. I ran it on my own dataset, but it gave me this error. So I tried it on karate.edgelist as well. It gives me the same error. Also it seems that S_hat is not of size n*n, it seems more like a one-dimensional array.

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

2 participants