TimeLimitWrapper¶
-
class
maze.core.wrappers.time_limit_wrapper.
TimeLimitWrapper
(*args, **kwds)¶ Wrapper to limit the environment step count, equivalent to gym.wrappers.time_limit.
Additionally to the gym wrapper, this one supports adjusting the limit after construction.
- Parameters
env – The environment to wrap.
max_episode_steps – The maximum number of steps to take. If 0, the step limit is disabled.
-
clone_from
(env: maze.core.wrappers.time_limit_wrapper.TimeLimitWrapper) → None¶ (overrides
SimulatedEnvMixin
)implementation of
SimulatedEnvMixin
.
-
get_observation_and_action_dicts
(maze_state: Optional[Any], maze_action: Optional[Any], first_step_in_episode: bool) → Tuple[Optional[Dict[Union[int, str], Any]], Optional[Dict[Union[int, str], Any]]]¶ (overrides
Wrapper
)This wrapper does not modify observations and actions.