Can I get the index of the sampled node in the original data after using NeighborLoader for sampling #4466
Answered
by
rusty1s
Danieltobesixabs
asked this question in
Q&A
-
Hello,I've been reproducing a piece of paper recently,when i use the NeighborLoader to sample, I need to get the index of the sampled node in the original data after using NeighborLoader for sampling, but i read the documentation, i found that i can`t get it. So could you tell me how can i get the index? |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Apr 13, 2022
Replies: 1 comment 1 reply
-
You can add the information to the original data: data.n_id = torch.arange(data.num_nodes) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Danieltobesixabs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add the information to the original data: