Replies: 1 comment 3 replies
-
If you want to divide a graph by indices, you may want to look into the data1 = data.subgraph(torch.tensor([0, 3, 5, ..., 1000]))
data2 = data.subgraph(torch.tensor([1, 2, 4, ...])) |
Beta Was this translation helpful? Give feedback.
3 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.
-
How to divide the Cora dataset into two parts, and the node index of each part is given rather than random. For example, the first part of the node index is [0,3,5,... 1000], and the second part of the node index is [1,2,4,...]
Beta Was this translation helpful? Give feedback.
All reactions