reset(episode=-1, seed=None)
This is similar to the reset() method we saw in the Gym interface, but unlike Gym environments, DM Lab's reset method call does not return the observation. We will see later how to get observations, so for now, we will discuss DM Lab's reset(episode=-1, seed=None) method. It resets the environment to an initial state and needs to be called at the end of every episode, in order for a new episode to be created. The optional episodeargument takes an integer value to specify the level in a specific episode. If the episodevalue is not set, or is set to -1, the levels are loaded in numerical order. The seedargument is also optional and is used to seed the environment's random number generator for reproducibility purposes. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access