LpScaler Class
Description Normalize vectors (rows) individually by rescaling them to unit norm (L2, L1 or LInf). Performs the following operation on a vector X: Y = (X - M) / D, where M is mean and D is either L2 norm, L1 norm or LInf norm.
- Inheritance
-
nimbusml.internal.core.preprocessing.normalization._lpscaler.LpScalerLpScalernimbusml.base_transform.BaseTransformLpScalersklearn.base.TransformerMixinLpScaler
Constructor
LpScaler(norm='L2', sub_mean=False, columns=None, **params)
Parameters
- columns
see Columns.
- norm
The norm to use to normalize each sample.
- sub_mean
Subtract mean from each value before normalizing.
- params
Additional arguments sent to compute engine.
Methods
get_params |
Get the parameters for this operator. |
get_params
Get the parameters for this operator.
get_params(deep=False)
Parameters
- deep
default value: False