Atari Wrapper Parameters ---------- env: Any another env wrapper discount: float discount of env cvt_string: bool True -> convert the observation into string in the replay buffer
(self, env, discount: float, cvt_string=True)
| 5 | |
| 6 | class AtariWrapper(Game): |
| 7 | def __init__(self, env, discount: float, cvt_string=True): |
| 8 | """Atari Wrapper |
| 9 | Parameters |
| 10 | ---------- |
| 11 | env: Any |
| 12 | another env wrapper |
| 13 | discount: float |
| 14 | discount of env |
| 15 | cvt_string: bool |
| 16 | True -> convert the observation into string in the replay buffer |
| 17 | """ |
| 18 | super().__init__(env, env.action_space.n, discount) |
| 19 | self.cvt_string = cvt_string |
| 20 | |
| 21 | def legal_actions(self): |
| 22 | return [_ for _ in range(self.env.action_space.n)] |
nothing calls this directly
no outgoing calls
no test coverage detected