GraphSAGE (Graph SAmple and aggreGatE) samples a neighborhood for each node and aggregates their features. Unlike GCN which uses all neighbors, GraphSAGE samples K neighbors for scalability.
hi(l+1)=σ(W(l)AGG({hj(l):j∈Si}))Where S_i is a sampled neighborhood of node i.
Implement:
graphsage_layer(features, adj, weight, num_samples)
Samples neighbors, aggregates, applies weight, returns updated features.
No results yet
Run your code to check it against the examples, or submit to run every test.