NoDictActionWrapper

class maze.core.wrappers.no_dict_action_wrapper.NoDictActionWrapper(*args, **kwds)

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

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

Implementation of ActionWrapper interface.

property action_space

The currently active gym action space.

property action_spaces_dict

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

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

Implementation of ActionWrapper interface.