-
I've read a couple of questions about attempting to leverage weights in edges, but through the current model I'm using I'm unsure how to do so. The above equation is what I'm attempting to replicate and I believe that the standard What I'm trying to accomplish is adding the last portion which takes into consideration the edge weights, but have been unsuccessful so far. What I've tried:
For context, I've been using the Any ideas on how I could go about incorporating edge weight into the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I seem to have gotten edge weights to be incorporated through redefining |
Beta Was this translation helpful? Give feedback.
The solution here seems to be to add edge weights as an edge attribute and generate another message in a custom
MessagePassing
layer. It will look like this in yourpropagate()
function, wheree
is an array the same dimensions asx
, your node attributes, but has your edge weights per neighbor.I then return both the embe…