Skip to content

CompositePreprocessor

Bases: DataPreprocessor

Data preprocessor that composes multiple data preprocessors

PARAMETER DESCRIPTION
data_preprocessors

data preprocessors

TYPE: list[DataPreprocessor]

from_config classmethod

Creates a composite preprocessor from the configuration.

PARAMETER DESCRIPTION
config

configuration

TYPE: CompositePreprocessorConfig

RETURNS DESCRIPTION
CompositePreprocessor

composite preprocessor

__call__

Preprocesses the data with each data preprocessor.

PARAMETER DESCRIPTION
data

data

TYPE: npt.NDArray

RETURNS DESCRIPTION
npt.NDArray

preprocessed data


CompositePreprocessorConfig

Bases: pydantic.BaseModel

Configuration for the from_config class method of CompositePreprocessor

ATTRIBUTE DESCRIPTION
data_preprocessors_configs

configurations of the data preprocessors

TYPE: list[DataPreprocessorConfig]


DataPreprocessorConfig

Bases: pydantic.BaseModel

Configuration for data preprocessors

ATTRIBUTE DESCRIPTION
name

name of the data preprocessor

TYPE: str

config

configuration of the data preprocessor

TYPE: NormalizePreprocessorConfig | StandardizePreprocessorConfig