torch_geometric.transforms.LocalCartesian
- class LocalCartesian(norm: bool = True, cat: bool = True, interval: Tuple[float, float] = (0.0, 1.0))[source]
Bases:
BaseTransform在其边缘属性中保存链接节点的相对笛卡尔坐标(功能名称:
local_cartesian)。每个坐标被邻域归一化到指定的区间(默认为\([0, 1]\))。- Parameters:
norm (bool, optional) – If set to
False, the output will not be normalized. (default:True)cat (bool, optional) – If set to
False, all existing edge attributes will be replaced. (default:True)interval ((float, float), optional) – A tuple specifying the lower and upper bound for normalization. (default:
(0.0, 1.0))