torch_geometric.transforms.RandomRotate

class RandomRotate(degrees: Union[Tuple[float, float], float], axis: int = 0)[source]

Bases: BaseTransform

围绕特定轴随机旋转节点位置,旋转因子在给定区间内随机采样(功能名称:random_rotate)。

Parameters:
  • degrees (tuplefloat) – 从中采样旋转角度的旋转区间。如果 degrees 是一个数字而不是一个元组,则区间由 \([-\mathrm{degrees}, \mathrm{degrees}]\) 给出。

  • axis (int, optional) – 旋转轴。 (默认: 0)