SimulatedEnvMixin

class maze.core.env.simulated_env_mixin.SimulatedEnvMixin

Environment interface for simulated environments.

The main addition to StructuredEnv is the clone method, which resets the simulation to the given env state. This interface is used by Monte Carlo Tree Search.

abstract clone_from(env: maze.core.env.structured_env.StructuredEnv)None

Clone an environment by resetting the simulation to its current state.

Parameters

env – The environment to clone.

set_fast_step(do_fast_step: bool)None

Sets the step mode of the environment. Can be used for example to bypass expensive action masking when replaying actions on a seeded environment.

Parameters

do_fast_step – If True fast stepping is active; else not.