I want to train a GCN for graph regression, but keep running into shape errors. This is the google colab MWE script. There are two nodal features (both scalars), and a label (also scalar).
I’m focused on the ‘in features’ and ‘h features’ parameters of the GCN, and the batch size. The only combination that avoids errors is both GCN parameters being equal to the number of nodes (which is constant), and batch size = 1.
If either batch size isn’t 1, or ‘in features’ isn’t the number of nodes, some mat1 and mat2 shapes cannot be multiplied [...]
error happens in one of the convolutions on the forward method. And when the ‘h features’ isn’t the number of nodes, some Expect number of features to match number of nodes (len(u)). Got [x] and [y] instead
error happens.
I’m confused. What is the right combination of parameters for my case and why?