MCPcopy Create free account
hub / github.com/YeWR/EfficientZero / __init__

Method __init__

config/atari/env_wrapper.py:7–19  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

5
6class 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)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected