williamleif / GraphSAGE

Representation learning on large graphs using stochastic graph convolutions.
Other
3.41k stars 841 forks source link

WHY 2 layer loop in aggregate function? #192

Open mxydls opened 1 year ago

mxydls commented 1 year ago

Hi, I'm wondering why we need a 2 layer loop in the aggregate function? Here is the pseudo code from the paper: image From my understanding, the aggregation is a one way process, from the bottom layer(with the most nodes) to the top layer(original batch nodes), which does not need 2 loops.