MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / get_observation

Method get_observation

rl3/es_flappy.py:48–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 return self.get_observation()
47
48 def get_observation(self):
49 # game state returns a dictionary which describes
50 # the meaning of each value
51 # we only want the values
52 obs = self.env.getGameState()
53 return np.array(list(obs.values()))
54
55 def set_display(self, boolean_value):
56 self.env.display_screen = boolean_value

Callers 2

stepMethod · 0.95
resetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected