Size Mismatch issue when running MLP with WebKB dataset from pytorch geometric #2926
Unanswered
AmitRoy7781
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Sorry for the late reply, I was offline for a few days. For a single training experiment, you have to pick a single train_mask = data.train_mask[:, 0] This let's you train the model just like on the In order to train sequentially on all provided splits, simply wrap everything into a for-loop, e.g.:
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I tried to run MLP on WebKB datasets (i.e. cornell, texas, wisconsin) loading from the pytorch geometric using this tutorial. But, those datasets follow a 10-fold cross validation split (train_mask, test_mask, val_mask has a shape of (# nodes, 10)) which gives a size mismatch error. When I tried to run MLP on citation datasets (i.g. cora, citeser) they work fine but datasets with cross validation creates the size mismatch issue problem.
It would be really helpful if you kindly give me a quick answer @rusty1s
Beta Was this translation helpful? Give feedback.
All reactions