popgym.core.wrapper
Module Contents
Classes
Wraps a |
- class popgym.core.wrapper.POPGymWrapper(env: popgym.core.env.POPGymEnv)
Bases:
gymnasium.Wrapper,popgym.core.env.POPGymEnvWraps a
gymnasium.Envto allow a modular transformation of thestep()andreset()methods.This class is the base class of all wrappers to change the behavior of the underlying environment. Wrappers that inherit from this class can modify the
action_space,observation_space,reward_rangeandmetadataattributes, without changing the underlying environment’s attributes. Moreover, the behavior of thestep()andreset()methods can be changed by these wrappers.Some attributes (
spec,render_mode,np_random) will point back to the wrapper’s environment (i.e. to the corresponding attributes ofenv).- Note:
If you inherit from
Wrapper, don’t forget to callsuper().__init__(env)
- property state_space: gymnasium.spaces.Space
Returns the observation space of the environment.
- get_state() gymnasium.core.ObsType
Returns the underlying hidden Markov state