torch_geometric.nn.models for classification #5038
-
Hello everyone, I've been looking in the documentation and Github issues for some time now and haven't been able to find a way to use the models available in Is there any way to use them or are they just for node classification? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Jul 23, 2022
Replies: 1 comment 1 reply
-
You can use the models in x = self.gcn(x, edge_index)
x = global_mean_pool(x, batch)
return self.classifier(x) We assume that a GNN just learns new node representations, which can then be used for various down-stream tasks (node, edge, graph) by connecting different heads to it. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Takaogahara
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the models in
nn.models
as part of graph classification pipeline:We assume that a GNN just learns new node representations, which can then be used for various down-stream tasks (node, edge, graph) by connecting different heads to it.