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

Method current_state

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

Source from the content-addressed store, hash-verified

29 self.j = s[1]
30
31 def current_state(self):
32 return (self.i, self.j)
33
34 def is_terminal(self, s):
35 return s not in self.actions

Callers 11

undo_moveMethod · 0.95
play_gameFunction · 0.45
play_gameFunction · 0.45
q_learning.pyFile · 0.45
td0_prediction.pyFile · 0.45
gather_samplesFunction · 0.45
gather_samplesFunction · 0.45
approx_control.pyFile · 0.45
sarsa.pyFile · 0.45
play_gameFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected