questions about e_id and node_id on LinkNeighborLoader #7233
Unanswered
cooperationz
asked this question in
Q&A
Replies: 1 comment 2 replies
-
test_data["user"].node_id = torch.tensor([0, 1, 3, 4]) rather than test_data["user"].node_id = torch.tensor([0, 1, 2, 3])
|
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.
-
1、When I use LinkNeighborLoader for sampling, what are the n_id and input_id of the results returned in each batch?
I think input_id is the index of test_data["user", "rates", "movie"].edge_label, e_id is the index of test_data["user", "rates", "movie"].edge_label, and then these two sets of indexes Get the n_id of user and movie in this batch, but I can't get the expected result from the above code, is my code wrong?
2、Also, is node_id the result after mapping? If yes, why not a continuation starting from 0?
1、When I use LinkNeighborLoader for sampling, what are the n_id and input_id of the results returned in each batch?
I think input_id is the index of test_data["user", "rates", "movie"].edge_label, e_id is the index of test_data["user", "rates", "movie"].edge_label, and then these two sets of indexes Get the n_id of user and movie in this batch, but I can't get the expected result from the above code, is my code wrong?
https://colab.research.google.com/drive/1xpzn1Nvai1ygd_P5Yambc_oe4VBPK_ZT?usp=sharing
Beta Was this translation helpful? Give feedback.
All reactions