torch_geometric.transforms.LocalDegreeProfile
- class LocalDegreeProfile[source]
Bases:
BaseTransform从“一个简单但有效的非属性图分类基线”论文中附加局部度分布(LDP)(功能名称:
local_degree_profile)。\[\mathbf{x}_i = \mathbf{x}_i \, \Vert \, (\deg(i), \min(DN(i)), \max(DN(i)), \textrm{mean}(DN(i)), \textrm{std}(DN(i)))\]到节点特征,其中 \(DN(i) = \{ \deg(j) \mid j \in \mathcal{N}(i) \}\)。