torch_geometric.nn.conv.LGConv
- class LGConv(normalize: bool = True, **kwargs)[source]
Bases:
MessagePassing来自“LightGCN: 简化和增强推荐系统中的图卷积网络”论文的轻量图卷积(LGC)操作符。
\[\mathbf{x}^{\prime}_i = \sum_{j \in \mathcal{N}(i)} \frac{e_{j,i}}{\sqrt{\deg(i)\deg(j)}} \mathbf{x}_j\]- Parameters:
normalize (bool, 可选) – 如果设置为
False,输出特征 将不会通过对称归一化进行归一化。 (默认:True)**kwargs (optional) – Additional arguments of
torch_geometric.nn.conv.MessagePassing.
- Shapes:
输入: 节点特征 \((|\mathcal{V}|, F)\), 边索引 \((2, |\mathcal{E}|)\), 边权重 \((|\mathcal{E}|)\) (可选)
output: node features \((|\mathcal{V}|, F)\)