GAT that also incorporates edge_weight #2487
Replies: 2 comments 15 replies
-
In There doesn't exist a tutorial yet on how to convert GNN operators into relational ones, but this reply should get you going. At one point, I will write a wrapper to make this more convenient. |
Beta Was this translation helpful? Give feedback.
-
I've implemented an edge weighted GAT conv here: https://github.com/dhall1995/GrapHiC/blob/master/GrapHiC/layers/GATEConv.py for a project of mine. Example usage in a net being found here (although the train.py script unfortunately can't be run at the minute the layers do propagate information correctly in testing): https://github.com/dhall1995/GrapHiC-ML/blob/master/train.py This implements the following convolution: with the top equations being the original GAT convolution and the bottom layers being my edge weighted version. The linearly transformed edge features are also output to the next layer. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a
GATConv
like GNN that usesedge_weight
to learn better representation for nodes?Does RGAT (Relational GAT ) take
edge_weight
oredge_attr
into account? Is there an implementation of RGAT in PyG? Can we useedge_weight
asedge_attr
?RGAT is a generalization
GAT
, so I think it a simple extension of GAT should help us have RGAT in PyG, right? If so then how can I go about doing so? If there is a tutorial to do so, then we can implement bunch of new GNNs in PYG.Beta Was this translation helpful? Give feedback.
All reactions