-
Hi, I'm trying to train a model using
Let's say my node feature matrix X is of dimensions (10, 100) - 10 nodes with 100 features each. If there are 50 edges and I am only using one edge attribute, then my edge attribute matrix will be size 50. I don't understand why the size of my first row of the node feature matrix has to be equal to the size of my edge attribute matrix - is this claiming there should be a relationship between the number of node features and the number of edge attributes? Hoping someone can point out where I'm getting confused - thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, exactly. Node feature dimensions and edge feature dimensions have to match, as x = conv(x, edge_index, lin(edge_attr)) where |
Beta Was this translation helpful? Give feedback.
Yes, exactly. Node feature dimensions and edge feature dimensions have to match, as
GINEConv
utilizes summation to integrate edge features into source node features. A good way to allow that is to transform your edge features first before passing it intoGINEConv
, e.g.:where
lin
denotes aLinear
layer mapping to the number of node features.