torch_geometric.transforms.Polar

class Polar(norm: bool = True, max_value: Optional[float] = None, cat: bool = True)[source]

Bases: BaseTransform

将链接节点的极坐标保存在其边缘属性中 (功能名称: polar).

Parameters:
  • norm (bool, 可选) – 如果设置为 False,输出将不会归一化到区间 \({[0, 1]}^2\)。 (默认: True)

  • max_value (float, optional) – If set and norm=True, normalization will be performed based on this value instead of the maximum value found in the data. (default: None)

  • cat (bool, optional) – If set to False, all existing edge attributes will be replaced. (default: True)