Skip to content
Discussion options

You must be logged in to vote

You could use torch_geometric.utils.batched_negative_sampling for this and concatenate the resulting negative edges to your edge_index. As an alternative, you can also apply such modifications via the usage of transforms, which has the advantage that you do not need to care about correct mini-batch treatment.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@nsidn98
Comment options

@rusty1s
Comment options

@nsidn98
Comment options

@rusty1s
Comment options

@nsidn98
Comment options

Answer selected by nsidn98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants