Skip to content
Discussion options

You must be logged in to vote

The train_pos_neg_adj_mask can be used to sample negative edges. If you want to convert that into an edge_index representation, you can do the following:

train_neg_edge_index = data.train_neg_adj_mask.nonzero(as_tuple=False).t()

However, note that we typically cannot train against all negative edges since the amount of negative edges is quite large in general.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@bits-glitch
Comment options

@rusty1s
Comment options

@bits-glitch
Comment options

Answer selected by bits-glitch
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