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

Method set

rl/grid_world.py:154–159  ·  view source on GitHub ↗
(self, rewards, actions, probs)

Source from the content-addressed store, hash-verified

152 self.j = start[1]
153
154 def set(self, rewards, actions, probs):
155 # rewards should be a dict of: (i, j): r (row, col): reward
156 # actions should be a dict of: (i, j): A (row, col): list of possible actions
157 self.rewards = rewards
158 self.actions = actions
159 self.probs = probs
160
161 def set_state(self, s):
162 self.i = s[0]

Callers 2

windy_gridFunction · 0.95
windy_grid_penalizedFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected