lit_sb3.wrappers.atari.sticky_action
source module lit_sb3.wrappers.atari.sticky_action
Classes
-
StickyActionEnv — Sticky action.
source class StickyActionEnv(env: gym.Env, action_repeat_probability: float)
Bases : gym.Wrapper[np.ndarray, int, np.ndarray, int]
Sticky action.
Paper: https://arxiv.org/abs/1709.06009 Official implementation: https://github.com/mgbellemare/Arcade-Learning-Environment
Parameters
-
env : gym.Env — Environment to wrap
-
action_repeat_probability : float — Probability of repeating the last action
Attributes
-
metadata : dict[str, Any] — attr:
Env:attr:metadata. -
render_mode : str | None — attr:
Env:attr:render_mode. -
spec : EnvSpec | None — attr:
Env:attr:specattribute with theWrapperSpecif the wrapper inherits fromEzPickle. -
action_space : spaces.Space[ActType] | spaces.Space[WrapperActType] — attr:
Env:attr:action_spaceunless overwritten then the wrapper :attr:action_spaceis used. -
observation_space : spaces.Space[ObsType] | spaces.Space[WrapperObsType] — attr:
Env:attr:observation_spaceunless overwritten then the wrapper :attr:observation_spaceis used. -
unwrapped : Env[ObsType, ActType] — Returns the base environment of the wrapper.
-
np_random_seed : int | None — attr:
np_random_seed. -
np_random : np.random.Generator — attr:
Env:attr:np_randomattribute.
Methods
source method StickyActionEnv.reset(**kwargs) → AtariResetReturn
source method StickyActionEnv.step(action: int) → AtariStepReturn