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

since we are no longer using matrix types, then have to explicitly call dot...

since we are no longer using matrix types, then have to explicitly call dot function for dot product
parent fddecd4a
......@@ -1200,7 +1200,7 @@ class PolicyIteration(MDP):
itr += 1
Vprev = policy_V
policy_V = policy_R + self.discount * policy_P * Vprev
policy_V = policy_R + self.discount * policy_P.dot(Vprev)
variation = absolute(policy_V - Vprev).max()
if self.verbose:
......
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