popgym.wrappers.discrete_action
Attributes
Classes
Wrapper that converts a MultiDiscrete into a single Discrete action. |
Module Contents
- popgym.wrappers.discrete_action.PREV_ACTION = 'prev_action'
- class popgym.wrappers.discrete_action.DiscreteAction(env: popgym.core.env.POPGymEnv)
Bases:
popgym.core.wrapper.POPGymWrapperWrapper that converts a MultiDiscrete into a single Discrete action.
- Args:
env: The environment
- Returns:
A gym environment
- action_space: gymnasium.spaces.Space
Return the
Envaction_spaceunless overwritten then the wrapperaction_spaceis used.