mlrl.testbed.experiments.input.dataset.preprocessors.preprocessor module

Author: Michael Rapp (michael.rapp.ml@gmail.com)

Provides classes for implementing preprocessors.

class mlrl.testbed.experiments.input.dataset.preprocessors.preprocessor.Preprocessor

Bases: ABC

An abstract base class for all classes that allow preprocessing datasets.

class Encoder

Bases: ABC

Allows encoding datasets.

abstractmethod encode(dataset: Any) Any

Encodes a dataset.

Parameters:

dataset – The dataset to be encoded

Returns:

The encoded dataset

abstractmethod create_encoder() Encoder

Creates and returns an encoder that allows preprocessing datasets.

Returns:

The encoder that has been created