Replies: 1 comment
-
You can take a look at the batch[edge_type_to_add_negative_samples].neg_edge_index = negative_sampling(...) |
Beta Was this translation helpful? Give feedback.
0 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 have a hetero graph in PyTorch geometric and want to mini-batch it using LinkNeighborLoader. I know that it can sample and add negative edges for me, but I want to do it manually. How can I, after a batch is created, add negative edges to the batch? I know the global indices of the nodes I want to add a negative edge between. My batches look like this when created:
Thanks for the help in advance :)
Please just write if you need more information about the problem?
Beta Was this translation helpful? Give feedback.
All reactions