Graph Isomorphism Network (GIN) uses the Weisfeiler-Lehman test to aggregate node information. It has provably high expressive power for distinguishing non-isomorphic graphs.
hi(l+1)=MLP(l)(1+ϵ(l))hi(l)+j∈N(i)∑hj(l)
Where epsilon is a learnable parameter (can be fixed).
From theory to code
Implement:
gin_layer(features, adj, weight, epsilon=0.0)
Constraints
features shape: (num_nodes, input_dim).
adj shape: (num_nodes, num_nodes).
weight shape: (input_dim, output_dim).
epsilon: scalar, learnable or fixed.
Return shape: (num_nodes, output_dim).
Keywords
deep-learninggraph-neural-networksgin
Python
Run your code to see results
No results yet
Run your code to check it against the examples, or submit to run every test.