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

Class MapState

examples/DeepQNetwork/atari_wrapper.py:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17
18class MapState(gym.ObservationWrapper):
19 def __init__(self, env, map_func):
20 gym.ObservationWrapper.__init__(self, env)
21 self._func = map_func
22
23 def observation(self, obs):
24 return self._func(obs)
25
26
27class FrameStack(gym.Wrapper):

Callers 1

get_playerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected