GymActionConversion¶
-
class
maze.core.wrappers.maze_gym_env_wrapper.
GymActionConversion
(env: gym.Env)¶ A dummy conversion interface asserting that the action is packed into a dictionary space.
- Parameters
env – Gym environment.
-
maze_to_space
(maze_action: Any) → Dict[str, numpy.ndarray]¶ Converts environment MazeAction to agent action.
- Parameters
maze_action – the environment MazeAction.
- Returns
the agent action.
-
space
() → gym.spaces.Dict¶ Returns respective gym action space.
-
space_to_maze
(action: Dict[str, numpy.ndarray], maze_state: Any) → Any¶ Converts agent action to environment MazeAction.
- Parameters
action – the agent action.
maze_state – the environment state.
- Returns
the environment MazeAction.