DictActionWrapper

class maze.core.wrappers.dict_action_wrapper.DictActionWrapper(*args, **kwds)

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]) → Union[numpy.ndarray, Tuple[numpy.ndarray]]

Implementation of ActionWrapper interface.

clone_from(env: maze.core.wrappers.dict_action_wrapper.DictActionWrapper)None

(overrides SimulatedEnvMixin)

implementation of SimulatedEnvMixin.

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

Implementation of ActionWrapper interface.