Code Documentation: Preprocessing

mastml.preprocessing Module

This module contains methods to perform data preprocessing, such as various standardization/normalization methods

BasePreprocessor:

Base class that adds some MAST-ML type functionality to other preprocessors. Other preprocessor classes all inherit this base class

SklearnPreprocessor:

Class that wraps any preprocessor method from scikit-learn (e.g. StandardScaler) to have MAST-ML type functionality

NoPreprocessor:

Class that performs no preprocessing. A preprocessor is needed in the MAST-ML evaluation of data splits. If no preprocessing is desired, then this NoPreprocessor class is invoked by default

MeanStdevScaler:

Preprocessor class which extends scikit-learn’s StandardScaler to scale the dataset to a particular user-specified mean and standard deviation value

Classes

BaseEstimator()

Base class for all estimators in scikit-learn.

BasePreprocessor(preprocessor[, as_frame])

Base class to provide new methods beyond sklearn fit_transform, such as dataframe support and directory management

MeanStdevScaler([mean, stdev, as_frame])

Class designed to normalize input data to a specified mean and standard deviation

NoPreprocessor([preprocessor, as_frame])

Class for having a "null" transform where the output is the same as the input.

SklearnPreprocessor(preprocessor[, as_frame])

Class to wrap any scikit-learn preprocessor, e.g. StandardScaler.

TransformerMixin()

Mixin class for all transformers in scikit-learn.

datetime(year, month, day[, hour[, minute[, ...)

The year, month and day arguments are required.

Class Inheritance Diagram

digraph inheritance0ed7a715ef { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "BaseEstimator" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Base class for all estimators in scikit-learn."]; "ReprHTMLMixin" -> "BaseEstimator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "_HTMLDocumentationLinkMixin" -> "BaseEstimator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "_MetadataRequester" -> "BaseEstimator" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BasePreprocessor" [URL="api/mastml.preprocessing.BasePreprocessor.html#mastml.preprocessing.BasePreprocessor",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class to provide new methods beyond sklearn fit_transform, such as dataframe support and directory management"]; "BaseEstimator" -> "BasePreprocessor" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TransformerMixin" -> "BasePreprocessor" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MeanStdevScaler" [URL="api/mastml.preprocessing.MeanStdevScaler.html#mastml.preprocessing.MeanStdevScaler",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class designed to normalize input data to a specified mean and standard deviation"]; "BasePreprocessor" -> "MeanStdevScaler" [arrowsize=0.5,style="setlinewidth(0.5)"]; "NoPreprocessor" [URL="api/mastml.preprocessing.NoPreprocessor.html#mastml.preprocessing.NoPreprocessor",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class for having a \"null\" transform where the output is the same as the input. Needed by MAST-ML as a placeholder if"]; "BasePreprocessor" -> "NoPreprocessor" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ReprHTMLMixin" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Mixin to handle consistently the HTML representation."]; "SklearnPreprocessor" [URL="api/mastml.preprocessing.SklearnPreprocessor.html#mastml.preprocessing.SklearnPreprocessor",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class to wrap any scikit-learn preprocessor, e.g. StandardScaler"]; "BasePreprocessor" -> "SklearnPreprocessor" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TransformerMixin" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Mixin class for all transformers in scikit-learn."]; "_SetOutputMixin" -> "TransformerMixin" [arrowsize=0.5,style="setlinewidth(0.5)"]; "_HTMLDocumentationLinkMixin" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Mixin class allowing to generate a link to the API documentation."]; "_MetadataRequester" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Mixin class for adding metadata request functionality."]; "_SetOutputMixin" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Mixin that dynamically wraps methods to return container based on config."]; }