MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / reset

Method reset

examples/DeepQNetwork/atari.py:140–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 self.ale.act(0)
139
140 def reset(self):
141 if self.ale.game_over():
142 self._restart_episode()
143 return self._current_state()
144
145 def render(self, *args, **kwargs):
146 pass # visualization for this env is through the viz= argument when creating the player

Callers 4

atari.pyFile · 0.45
play_one_episodeFunction · 0.45
__init__Method · 0.45
stepMethod · 0.45

Calls 2

_restart_episodeMethod · 0.95
_current_stateMethod · 0.95

Tested by

no test coverage detected