Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c93f818

Browse files
committed
Added missing 'self' parameter.
1 parent a79cf4b commit c93f818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mdp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def R(self, state):
2525
"Return a numeric reward for this state."
2626
return self.reward[state]
2727

28-
def T(state, action):
28+
def T(self, state, action):
2929
"""Transition model. From a state and an action, return a list
3030
of (result-state, probability) pairs."""
3131
abstract

0 commit comments

Comments
 (0)