Commit ee6624a8 authored by Steven Cordwell's avatar Steven Cordwell
Browse files

New iterate() method for MDP class warning that it needs to be implemenmted for child classes.

parent 22d7b63d
......@@ -454,6 +454,12 @@ class MDP(object):
self.P[aa] = matrix(self.P[aa])
if (type(self.R) is ndarray):
self.R = matrix(self.R)
def iterate(self):
"""This is a placeholder method. Child classes should define their own
iterate() method.
raise NotImplementedError("You should create an iterate method.")
def getSpan(self, W):
"""Returns the span of W
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment