MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / initialize_episode

Method initialize_episode

dm_control/rl/control.py:278–286  ·  view source on GitHub ↗

Sets the state of the environment at the start of each episode. Called by `control.Environment` at the start of each episode *within* `physics.reset_context()` (see the documentation for `base.Physics`). Args: physics: Instance of `Physics`.

(self, physics)

Source from the content-addressed store, hash-verified

276
277 @abc.abstractmethod
278 def initialize_episode(self, physics):
279 """Sets the state of the environment at the start of each episode.
280
281 Called by `control.Environment` at the start of each episode *within*
282 `physics.reset_context()` (see the documentation for `base.Physics`).
283
284 Args:
285 physics: Instance of `Physics`.
286 """
287
288 @abc.abstractmethod
289 def before_step(self, action, physics):

Callers 1

resetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected