Skip to content
Discussion options

You must be logged in to vote
  1. I think this works as expected, right? You can only sample 4 valid undirected edges as negatives in graph 1, and you can only sample 2 valid undirected edges as negatives in graph 2, leading to an output shape of [2, 12]. Note that negative sampling is done without replacement, and so num_neg_samples only acts as an upper bound.
  2. Currently, negative sampling does not include self-loops. We would need to add support for it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vietngth
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