Inductive embedding learns a function that generates representations for nodes or entire graphs, including entities absent from training. It uses node features and local-neighborhood structure, making it useful for evolving graphs. section 11.3.1
The key distinction is whether representations generalize beyond the training graph:
- Transductive embedding learns representations only for training nodes, so it suits static graphs but cannot directly represent new nodes. section 11.3.1
- Inductive embedding learns a reusable representation-generating function, with graph neural networks and graph convolutional networks as examples. section 11.3.1
Node embedding with a GCN
A practical implementation uses PyTorch Geometric and the Cora dataset. A two-layer GCN applies graph convolutions, ReLU activation, and dropout; Adam trains it for 200 epochs using the training-node mask. section 11.3.1
Figure 11.8 Node embedding using GCN in PyG
Inspect the PyTorch Geometric visualization of node embedding with a GCN. section 11.3.1
