FlattenPreProcessor¶
- class maze.core.wrappers.observation_preprocessing.preprocessors.flatten.FlattenPreProcessor(observation_space: gymnasium.spaces.Box, num_flatten_dims: int)¶
An array flattening pre-processor.
- Parameters:
observation_space – The observation space to pre-process.
num_flatten_dims – The number of dimensions to flatten out (from right).
- process(observation: numpy.ndarray) numpy.ndarray¶
(overrides
PreProcessor)implementation of
PreProcessorinterface
- processed_shape() Tuple[int, ...]¶
(overrides
PreProcessor)implementation of
PreProcessorinterface
- processed_space() gymnasium.spaces.Box¶
(overrides
PreProcessor)implementation of
PreProcessorinterface