src.utils.ftransf.standardizer
Classes
|
- class src.utils.ftransf.standardizer.Standardizer(**kwargs)
- Author:
Alberto M. Esmoris Pena
Class for transforming features by subtracting the mean and dividing by the standard deviation.
Let \(z\) be a standardized version of the feature \(x\) with mean \(\mu\) and standard deviation \(\sigma\). Then, \(z\) can be computed as:
\[z = \dfrac{x-\mu}{\sigma}\]- Variables:
center (bool) – Flag to control whether to center (i.e., subtract the mean).
scale (bool) – Flag to control whether to scale (i.e., divide by the standard deviation).
frenames ((list of str) or None) – When given, the normalized features will be stored in the point cloud with these names.
- static extract_ftransf_args(spec)
Extract the arguments to initialize/instantiate a Standardizer.
- Parameters:
spec – The key-word specification containing the arguments.
- Returns:
The arguments to initialize/instantiate a Standardizer.
- __init__(**kwargs)
Initialize/instantiate a Standardizer.
- Parameters:
kwargs – The attributes for the Standardizer.
- transform(F, y=None, fnames=None, out_prefix=None)
The fundamental feature transform logic defining the Standardizer.
See
FeatureTransformerandfeature_transformer.FeatureTransformer.transform().
- get_names_of_transformed_features(**kwargs)
See
FeatureTransformerandfeature_transformer.FeatureTransformer.get_names_of_transformed_features()