ForwardView.transform_action#

ForwardView.transform_action(action: int | Action) Action#

Transform given action so that it is compatible with the grid environment.

Can be used to define alternative action spaces and map them to the grid dynamics.

Parameters:

action (int | Action) – Action selected by the RL agent.

Returns:

Action within action_space to perform.

Return type:

Action