The T.RandomLinkSplit seems not work with Non Plaintoid Dataset #5709
Unanswered
HanChen-HUST
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Which PyG version are you using? It looks like this bug was resolved in 2.1.0. |
Beta Was this translation helpful? Give feedback.
2 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.
-
I am doing link prediction task,and need to divide the dataset,code like this
transform = T.Compose([
T.NormalizeFeatures(),
T.ToDevice(device),
T.RandomLinkSplit(num_val=0., num_test=0.1, is_undirected=True,
add_negative_train_samples=False),
])
dataset=Amazon(root=path, name='photo', transform=transform)
it works with Plaintoid dataset like Cora,but it wouldnt work with Non Plaintoid dataset,such ad Amazon photo
but it occurs a error "Insufficient number of edges for training." how can I solve it,thanks
Beta Was this translation helpful? Give feedback.
All reactions