popgym.wrappers.markovian

Module Contents

Classes

Markovian

Wrapper that adds the hidden Markov state to the observation or info dict

class popgym.wrappers.markovian.Markovian(env: popgym.core.env.POPGymEnv, observability: popgym.core.observability.Observability)

Bases: popgym.core.wrapper.POPGymWrapper

Wrapper that adds the hidden Markov state to the observation or info dict

Args:

env: The environment. observability: The observability level.

Returns:

A gym environment

reset(**kwargs) Tuple[gymnasium.core.ObsType, Dict[Any, Any]]

Uses the reset() of the env that can be overwritten to change the returned data.

add_state(obs, info)
step(action)

Uses the step() of the env that can be overwritten to change the returned data.