MCPcopy Create free account
hub / github.com/rlcode/reinforcement-learning / state

Method state

4-atari-hard/2-go-explore.py:176–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

174 return actions[::-1]
175
176 def state(self):
177 return {"count": self.count, "n_flushed": self.n_flushed,
178 "chunk_size": self.chunk_size,
179 "cur_prev": self.prev[:self.fill].copy(), "cur_act": self.act[:self.fill].copy(),
180 "cur_rew": self.rew[:self.fill].copy(), "cur_done": self.done[:self.fill].copy()}
181
182 def load_state(self, st):
183 assert st["chunk_size"] == self.chunk_size, "explog chunk_size mismatch"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected