MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / all_states

Method all_states

rl/grid_world.py:92–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

90 return (self.i, self.j) not in self.actions
91
92 def all_states(self):
93 # possibly buggy but simple way to get all states
94 # either a position that has possible next actions
95 # or a position that yields a reward
96 return set(self.actions.keys()) | set(self.rewards.keys())
97
98
99def standard_grid():

Calls

no outgoing calls

Tested by

no test coverage detected