rllm.transforms.graph_transforms.NormalizeFeatures¶
- class rllm.transforms.graph_transforms.NormalizeFeatures(norm: str = 'l2')[source]¶
Bases:
NodeTransformRow-normalizes the node features.
\[\vec{x} = \frac{\vec{x}}{||\vec{x}||_p}\]- Parameters:
norm (str) – The norm to use to normalize each non zero sample, e.g., l1, l2. (default: l2)