Edge attribute prediction #4960
Unanswered
jamilgafur
asked this question in
Q&A
Replies: 1 comment 2 replies
-
This can be generally tackled the same way: (1) You apply a GNN to learn new node representations, (2) use source and destination node representations to learn a label for the given link/pair of nodes: h = self.GNN(x, edge_index)
h_src = h[edge_index[0]]
h_dst = h[edge_index[1]]
edge_out = self.classifier(torch.cat([h_src, h_dst], dim=-1)) |
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.
-
Morning, I am looking for resources on edge_attribute prediction; thus given a set of nodes and a connection matrix, determine the edges classification. I currently see a lot of work in predicting if an edge should exist, but not much on given an edge predict what it is classified as. Any code snippets or resources are greatly appreciated.
For similar discussions I see a lot on link prediction (exist or not), however not as much on link; I would like to know, given a known edge what does it classify as.
Thank you for your time
Beta Was this translation helpful? Give feedback.
All reactions