You are viewing documentation about an older version (1.0.9). View latest version

snowflake.ml.modeling.preprocessing.NormalizerΒΆ

class snowflake.ml.modeling.preprocessing.Normalizer(*, norm: str = 'l2', input_cols: Optional[Union[str, Iterable[str]]] = None, output_cols: Optional[Union[str, Iterable[str]]] = None, drop_input_cols: Optional[bool] = False)ΒΆ

Bases: BaseTransformer

Methods

fit(dataset)

Does nothing, because the normalizer is a stateless transformer.

transform(dataset)

Scale each nonzero row of the input dataset to the unit norm.