PreProcessingWrapper

class maze.core.wrappers.observation_preprocessing.preprocessing_wrapper.PreProcessingWrapper(*args, **kwds)

An observation pre-processing wrapper. It provides functionality for:

  • pre-processing observations (flattening, one-hot encoding, …)

  • adopting the observation spaces accordingly

Parameters
  • env – Environment/wrapper to wrap.

  • pre_processor_mapping – The pre-processing configuration. Example mappings can be found in our reference documentation.

observation(observation: Any) → Any

Pre-processes observations.

Parameters

observation – The observation to be pre-processed.

Returns

The pre-processed observation.