-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Yes, this is correct. Please feel free to continue using the The |
Beta Was this translation helpful? Give feedback.
-
Hey, I have the same question. Does this mean that the two aggregation methods used in SAGE1 and SAGE2 will eventually yield the same results? If so, how should I decide the number of layers for sampling and the number of convolutional layers in the model? |
Beta Was this translation helpful? Give feedback.
Yes, this is correct. Please feel free to continue using the
NeighborSampler
if it fits you better. Overall, I don't like it that much because it leads to complicated GNN designs that are tightly coupled to a specific sampler.The
NeighborLoader
samples neighbors equivalently, but will group them into a singleedge_index
matrix. Note that theedge_index
is still directed though. As a result, the output is the same. The only difference is thatNeighborLoader
will be marginally slower since we are computing node embeddings for nodes we no longer need. This is a trade-off we make to obtain a cleaner GNN design.