ActionConversionInterface¶
- class maze.core.env.action_conversion.ActionConversionInterface¶
Interface specifying the conversion of agent actions to actual environment MazeActions.
- create_action_hash(action: Dict[str, int | numpy.ndarray]) int | str¶
Calculate a hash of the given action. Can be used for identifying and de-duplicating same actions when creating/evaluating action scenarios.
- Parameters:
action – Action to hash
- Returns:
Hash of a given action, either as a string, or integer (should be of the same type for all actions)
- 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.
- noop_action()¶
Converts environment MazeAction to agent action.
- Returns:
the noop action.
- abstract space() gymnasium.spaces.Dict¶
Returns respective gym action space.