MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / reset

Method reset

rl3/a2c/atari_wrappers.py:185–189  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

183 self.observation_space = spaces.Box(low=0, high=255, shape=(shp[0], shp[1], shp[2] * k))
184
185 def reset(self):
186 ob = self.env.reset()
187 for _ in range(self.k):
188 self.frames.append(ob)
189 return self._get_ob()
190
191 def step(self, action):
192 ob, reward, done, info = self.env.step(action)

Callers

nothing calls this directly

Calls 2

_get_obMethod · 0.95
resetMethod · 0.45

Tested by

no test coverage detected