src.utils.imput.univariate_imputer
Classes
|
- class src.utils.imput.univariate_imputer.UnivariateImputer(**kwargs)
- Author:
Alberto M. Esmoris Pena
Class to compute univariate imputations.
- static extract_imputer_args(spec)
Extract the arguments to initialize/instantiate an UnivariateImputer from a key-word specification.
- Parameters:
spec – The key-word specification containing the arguments.
- Returns:
The arguments to initialize/instantiate an UnivariateImputer.
- __init__(**kwargs)
Initialize/instantiate a UnivariateImputer
- Parameters:
kwargs – The attributes for the UnivariateImputer
- impute(F, y=None)
The fundamental imputation logic defining the univariate imputer See
ImputerIn this case, since imputation will not remove points, the y argument will be ignored, no matter what. However, in case y is given as not None, the return will be (imputed F, y) for compatibility and fluent programming. If y is None, only imputed F will be return.