williamleif / GraphSAGE

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

WHY 2 layer loop in aggregate function? #192

Open mxydls opened 2 years ago

mxydls commented 2 years 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.