NoDictObservationWrapper

class maze.core.wrappers.no_dict_observation_wrapper.NoDictObservationWrapper(*args, **kwds)

Wraps observations by replacing the dictionary observation space with the sole contained sub-space. This wrapper is for example required when working with external frameworks not supporting dictionary observation spaces.

observation(observation: Any) → Any

Implementation of ObservationWrapper interface.

property observation_space

The currently active gym observation space.

property observation_spaces_dict

A dictionary of gym observation spaces, with policy IDs as keys.