ActionConversionCandidatesInterface

class maze.core.agent_deployment.maze_action_candidates.ActionConversionCandidatesInterface(action_conversion: maze.core.env.action_conversion.ActionConversionInterface)

Wrapper for action conversion interface when working with multiple candidate actions/MazeActions.

Wraps an action_conversion interface. When action is passed in, uses the wrapped interface to convert all action candidates to respective MazeActions separately.

Parameters

action_conversion – Underlying interface to apply to each candidate

space() → gym.spaces.Space

Return the space defined by the underlying action conversion interface.

space_to_maze(action: maze.core.agent_deployment.maze_action_candidates.ActionCandidates, maze_state: Any)maze.core.agent_deployment.maze_action_candidates.MazeActionCandidates

Convert an action candidates object (containing multiple candidate actions) into corresponding MazeAction candidates object.

Parameters
  • action – Action candidates object, encapsulating multiple actions.

  • maze_state – Current state of the environment.

Returns

MazeAction candidate object, encapsulating multiple MazeActions.