rllm.transforms.graph_transforms.NormalizeFeatures

class rllm.transforms.graph_transforms.NormalizeFeatures(norm: str = 'l2')[source]

Bases: NodeTransform

Row-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)