Edge classification #4205
Unanswered
shrimonmuke0202
asked this question in
Q&A
Replies: 1 comment
-
This is possible, and involves using model = GCN(in_channels, hidden_channels, num_layers)
mlp = MLP(2 * hidden_channels, num_classes, num_layers)
h = model(x, edge_index)
h_src = h[edge_index[0]]
h_dst = h[edge_index[1]]
return mlp(torch.cat([h_src, h_dst], dim=-1)) |
Beta Was this translation helpful? Give feedback.
0 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.
-
How can I apply GCN for edge classification tasks using Pytorch Geometric? and the classification is multiclass classification.
Beta Was this translation helpful? Give feedback.
All reactions