Replies: 1 comment 2 replies
-
Hi @adnan0819 May I ask what your downstream task is? It seems that you meant to do a graph classification/regression task. If I understood it correctly, you can take a look at this example. More specifically, you can perform message passing on a batched graph: for batch in loader:
out = model(batch.x, batch.edge_index, batch.batch) |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am new to PyG and I can train simple GNN and GCN models. I am seeking some guidance. But for my task right now, I am doing the following:
So essentially if I print out
batch
, I get something as follows:@rusty1s My question is: how can I use those Databatches I showed in point 3 for training? In many examples like here, only one graph of a full dataset is used like this
data = dataset[0]
in Cora dataset (and also in the example above). But this is using only one graph of the full dataset. How can I use the full Dataloader's Data objects (all the graphs) in the training process?Thank you very much for your time and will really appreciate some guidance.
PS. I tried making one gigantic graph but for my purpose "node 1", "node 2" etc. in graph 1 has a certain semantic meaning which means the same in another graph, say graph 2s "node 1", "node 2" etc. So, if I have 20 nodes in graph 1, then having nodes 21, 22, 23 etc. in the same graph changes the meaning of the problem.
Beta Was this translation helpful? Give feedback.
All reactions