DictActionWrapper

class maze.core.wrappers.dict_action_wrapper.DictActionWrapper(env)

Wraps either a single action space or a tuple action space into dictionary space.

Parameters:

env – The environment to wrap.

action(action: Dict[str, numpy.ndarray]) numpy.ndarray | Tuple[numpy.ndarray]

Implementation of ActionWrapper interface.

clone_from(env: DictActionWrapper) None

(overrides SimulatedEnvMixin)

implementation of SimulatedEnvMixin.

reverse_action(action: numpy.ndarray | Tuple[numpy.ndarray]) Dict[str, numpy.ndarray]

Implementation of ActionWrapper interface.