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

Method set

rl/grid_world.py:21–25  ·  view source on GitHub ↗
(self, rewards, actions)

Source from the content-addressed store, hash-verified

19 self.j = start[1]
20
21 def set(self, rewards, actions):
22 # rewards should be a dict of: (i, j): r (row, col): reward
23 # actions should be a dict of: (i, j): A (row, col): list of possible actions
24 self.rewards = rewards
25 self.actions = actions
26
27 def set_state(self, s):
28 self.i = s[0]

Callers 2

standard_gridFunction · 0.95
grid_5x5Function · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected