-
Hey I had a few questions/thoughts on the
|
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
May 30, 2021
Replies: 1 comment 1 reply
-
perm = torch.randperm(edge_index.size(1))
pos_train_edge_index = edge_index[:, perm[:1000]]
...
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sbonner0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
train_test_split_edges
assumes an undirected graph represented byedge_index
. During splitting, we then make sure that both edges are contained in the same split. If you simply want to split your directed edges, I guess you can simple splitedge_index
based on a random permutation: