RandomRotate
¶
Bases: BaseTransform
Rotates the node positions pos by a random angle (in degrees)
around an axis, sampled uniformly from degrees (with mx.random).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
degrees
|
Union[Tuple[float, float], float]
|
The |
required |
axis
|
int
|
The rotation axis (for 3D positions). Default: |
0
|
Example:
Source code in mlx_graphs/transforms/point_cloud.py
from mlx_graphs.transforms import RandomRotate · mlx_graphs/transforms/point_cloud.py