Direct Message Passing along Edges #7587
-
Hi there, I am new to pyg and was wondering about the following use-case for a specific MessagePassing Network implementation: An example of this method can be found in the following paper (Appendix A): If this is possible, does this also go well with the Explainer algorithms? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I think you can directly do this via x_j = x[edge_index[0]]
x_i = x[edge_index[1]]
f(x_i, edge_attr, x_j) |
Beta Was this translation helpful? Give feedback.
Mh, I see. I missed the part where you want to use the explainer :(
What you can probably do is use
MessagePassing
but overwrite theaggregate
function, e.g.:This way, the explainer still manages to weight the importance of different messages.