torch_geometric.transforms.SIGN

class SIGN(K: int)[source]

Bases: BaseTransform

可扩展的Inception图神经网络模块(SIGN)来自 “SIGN: Scalable Inception Graph Neural Networks” 论文(功能名称:sign), 它预先计算了固定的表示。

\[\mathbf{X}^{(i)} = {\left( \mathbf{D}^{-1/2} \mathbf{A} \mathbf{D}^{-1/2} \right)}^i \mathbf{X}\]

对于 \(i \in \{ 1, \ldots, K \}\) 并将它们保存在 data.x1, data.x2, …

注意

由于中间节点表示是预先计算的,该操作符能够通过经典的小批量处理很好地扩展到大型图。有关使用SIGN的示例,请参见examples/sign.py

Parameters:

K (int) – 跳数/层数。