Skip to content

Understanding LinkNeighborLoader #7797

Answered by rusty1s
pstrybol asked this question in Q&A
Discussion options

You must be logged in to vote
  1. There are 3 types of nodes we include when sampling for 2 hops: (1) the seed nodes, (2) the nodes in the first hop, (2) the nodes in the second hop
    1.1 Yes.
  2. edge_label_index will remove reverse edges. Might this be the case?
  3. Manually setting node_id is no longer necessary, and is now automatically added by us via n_id. You can map indices back via n_id[edge_index].
  4. This may always happen since you will sample edges for each edge type in every hop.
  5. Yes, as long as it part of the returned mini-batch, it will be used for message passing.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
6 replies
@rusty1s
Comment options

@pstrybol
Comment options

@rusty1s
Comment options

@pstrybol
Comment options

@rusty1s
Comment options

Answer selected by pstrybol
Comment options

You must be logged in to vote
2 replies
@rusty1s
Comment options

@songsong0425
Comment options

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