-
Notifications
You must be signed in to change notification settings - Fork 409
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
Embeddings of all nodes are not obtained #11
Comments
Same issue with me. Some nodes are missing. |
If you have read the code, you may find that the training instances are sampled from the graph, so the edges of low degree vertices won't be sampled in the training stage. This is the reason that some nodes are missing in the final embedding result. |
@zhujiangang The embeddings are initialized at first in InitVector() so even some edges are not sampled the nodes still have embeddings. I didn't have this issue in my case of using LINE. I wonder what caused your problem. |
@gooeyforms Could you help me use this LINE model, I hava met some problems: I followed the train_youtube command, set the binary parameter 0, but the first column of the result file appear float nums, differ from the origin vertex id. I am very confused. |
I do had problems when I set binary to 0. So currently I'm setting binary to 1, then read the binary file and output to readable text (using Python, which I'm more familiar with). This is just makeshift. Please let me know if you figure this out.
2017年9月15日 09:44,jiay302 <[email protected]>写道:
@gooeyforms<https://github.com/gooeyforms> Could you help me use this LINE model, I hava met some problems: I followed the train_youtube command, set the binary parameter 0, but the first column of the result file appear float nums, differ from the origin vertex id. I am very confused.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#11 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADXP2vMsNKYBdVb_kG5mojZ9j1HOcf27ks5sidZ-gaJpZM4NstcM>.
|
@gooeyforms Can you provide your email to me? I have some questions to ask you. I am a student at Beijing University of Posts and Telecommunications. I am looking forward to getting your help. Thank you very much. |
Have you solved it? I met the same problem. Thanks! |
I have met the same problem, while I use the data of BlogCatalog, the embedding should be 10312,but line only returns a number of 10263. |
@pickou Could you run the code again with |
In my case, the issue occur the same. when I use |
@mongooma have you change the graph as undirected one ? I have made the change, like this.
then,
|
@pickou I did. I don't know what caused the issue. I suggest you set breakpoints or print lines to debug the code. Please let me know when you locate the problem. |
@mongooma I have found what caused the issue.
see,
then,
You'd better to warn people of that or you can set a parameter, like weighted, and deal with weighted and unweighted graph. |
@pickou I'm glad you located the problem. However, I still don't understand why this would cause the random result with different runs as you described. And even that I think the original input format is explicit enough for all types of graphs, I definitely think a separate script to deal with different input formats is a good idea. |
@mongooma I don't know either, but I have followed the ReadData() function, when I use the unweighted graph as input, like
and I print the name_v1 and name_v2, |
I suppose the reason why nodes miss is that the degree of missing nodes is zero |
Hi, I was trying to run this on a graph. However, the embeddings vec_1st.txt, vec_2nd.txt, and vec_all.txt do not generate the embeddings of all the nodes as in the original input graph.
Can you tell where I might be going wrong or why is this behavior caused?
The text was updated successfully, but these errors were encountered: