Closed island02 closed 3 years ago
Thanks for reporting. You are absolutely right. I fixed the label_prop.py
example in master, see here. Sorry for the inconvenience! Please let me know if everything works as expected.
Thank you, it works! The following two corrections were necessary. They are really minor fixes.
import torch.nn.functional as F
y_pred = model(y_train, adj_t).argmax(dim=-1)
with y_pred = model(y, adj_t).argmax(dim=-1)
https://github.com/snap-stanford/ogb/blob/master/examples/lsc/mag240m/label_prop.py When I run the above program, I get the following error.
I think it is because the range of values in train_idx, passed to LabelPropagation() as a mask, is up to about 100 million, even though the size of y_train is only about 1.11 million. I would like to know if this is a problem with my environment or if there is a way to fix it.
My environment is as follows. ogb==1.3.0 torch==1.8.0 torch-geometric @ git+https://github.com/rusty1s/pytorch_geometric.git@ed97ab797182fb39ab59c6736dbb74a5bdcd41cd