Skip to content

PopActionWrapper

Full path: schola.gym.utils.PopActionWrapper

schola.gym.utils.PopActionWrapper

PopActionWrapper

PopActionWrapper(env)

A wrapper that pops the action from the environment’s action space. This is useful for environments where the action space is a dictionary and we want to use only one of the actions.

Methods

ItemDescription
init
stepStep the environment with the given action.

Parameters

env (Env)

init

__init__(env)

Parameters

env (Env)


step

step(action)

Step the environment with the given action.