Replies: 1 comment
-
I think you need to update your foward function, because currently the feature dict gets updated in place
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Firstly want to say thanks for making such a rich GNN repository, this is fantastic.
I've been trying to train a Heterogeneous GNN based on the tutorials, on the following graph of TV watchers and TV programs.
There are edges from TV programs to TV programs, and edges from TV programs to TV watchers. I have created a dummy data object with this code:
So my hetero_graph object looks like this when I print it:
HeteroData(
tv_watcher={
x=[100, 16],
train_mask=[100],
val_mask=[100],
test_mask=[100],
y=[100]
},
tv_program={ x=[50, 8] },
(tv_program, related_to, tv_program)={ edge_index=[2, 1000] },
(tv_program, watched_by, tv_watcher)={ edge_index=[2, 5000] }
)
I train the model with the following code (I am wondering whether there are errors here, but I can't see the wood from the trees at the moment)
As this is dummy data for now, the results are obviously rubbish, but the train loss does decrease and the model overfits.
I then try to explain the prediction for a given node:
But I get the error:
How can I fix this? Is it just an issue with my original model, or do I need to modify the input to explainer()?
Beta Was this translation helpful? Give feedback.
All reactions