SklearnPreprocessor¶
- class mastml.preprocessing.SklearnPreprocessor(preprocessor, as_frame=False, **kwargs)[source]¶
Bases:
BasePreprocessor
Class to wrap any scikit-learn preprocessor, e.g. StandardScaler
- Args:
preprocessor (str): name of a sklearn.preprocessor object, e.g. StandardScaler
as_frame (bool): whether to return data as a dataframe
kwargs : key word arguments for the sklearn.preprocessor object
Methods:
See documentation of BasePreprocessor