Node classification on WebKB datasets #5374
-
Hi! @rusty1s I am trying to run node classification on WebKB datasets - Texas, Wisconsin and Cornell (https://pytorch-geometric.readthedocs.io/en/latest/modules/datasets.html#torch_geometric.datasets.WebKB), but I keep getting this error. Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @AdarshMJ There are ten different splits in # `split_idx` could be 0, 1, ..., 9
mask = data.train_mask[:, split_idx]
loss = criterion(out[mask], data.y[mask]) |
Beta Was this translation helpful? Give feedback.
-
In test = int(correct.sum()) / int(data.val_mask[:, 0].sum()) and you'll get your accuracy of 0.61 |
Beta Was this translation helpful? Give feedback.
In
test
, the computation of accuracy should beand you'll get your accuracy of 0.61