preprocessor package

Submodules

preprocessor.conftest module

preprocessor.preprocessor module

This File contains the Preprocessor class, it is the base class for DataTrimmer, FeatureSelector, Standardizer and SlidingWindow classes.

class preprocessor.preprocessor.Preprocessor(conf)[source]

Bases: preprocessor.preprocessor_base.PreprocessorBase

Base class for DataTrimmer, FeatureSelector, Standardizer, SlidingWindow.

assign_arguments(pargs)[source]
core()[source]

Core preprocessor task after starting the instance with the main method. To be overriden by child classes depending on their preprocessor task.

main(args)[source]
Starts an instance. Main entry point allowing external calls.
Starts logging, parse command line arguments and start core.

Args: args ([str]): command line parameter list

parse_args(args)[source]

Parse command line parameters, to be overriden by child classes depending on their command line parameters if they are console scripts.

Args: args ([str]): command line parameters as list of strings

Returns: argparse.Namespace: command line parameters namespace

parse_cmd(parser)[source]
store()[source]

Save preprocessed data and the configuration of the preprocessor.

preprocessor.preprocessor_base module

This File contains the Preprocessor class, it is the base class for DataTrimmer, FeatureSelector, Standardizer, SlidingWindow.

class preprocessor.preprocessor_base.PreprocessorBase(conf)[source]

Bases: object

Base class for Preprocessor.

input_file = None

Path of the input dataset

load_ds()[source]

Save preprocessed data and the configuration of the preprocessor.

output_file = None

Path of the output dataset

setup_logging(loglevel)[source]

Setup basic logging.

Args: loglevel (int): minimum loglevel for emitting messages

Module contents