FlattenPreProcessor¶
-
class
maze.core.wrappers.observation_preprocessing.preprocessors.flatten.
FlattenPreProcessor
(observation_space: gym.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
PreProcessor
interface
-
processed_shape
() → Tuple[int, …]¶ (overrides
PreProcessor
)implementation of
PreProcessor
interface
-
processed_space
() → gym.spaces.Box¶ (overrides
PreProcessor
)implementation of
PreProcessor
interface