Replies: 3 comments 4 replies
-
This sounds like a node-level prediction task on multiple graphs. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer. Now my problem is, sometime the labels of the nodes in each graph are only '0' and sometime the labels contain '0' and '1'. I'm trying to use GCN to train based on mutiple graphs. Here is the code, I have written so far:
And after running the project, I get the following error:
I appreciate, if anyone can suggest me how to fix the error. |
Beta Was this translation helpful? Give feedback.
-
here in the method forward() at the end, I want to return the exact class label for each of nodes. the data.y also contains only 0 and 1 as the class of each nodes. Thus I can use BCEWithLogitsLoss() as the loss function. Can you tell me how can I output the predicted class of each of nodes in forward method()? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I have multiple graphs and each of its node has features and labels. I am new in Graph neural network. I want to train a GCN with multiple of these graphs while the nodes have labels instead of each graph and then test and evaluate on the rest of graphs which again their nodes have labels. In the test part, I want the GCN predict the label of each nodes when I input any graph with the features of the nodes. I appreciate if any one can help me, how can I do it?
Beta Was this translation helpful? Give feedback.
All reactions