Skip to content

Commit a763469

Browse files
committed
s -> sp in ValueIteration (#20)
1 parent 55bb759 commit a763469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pomdp_py/algorithms/value_iteration.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ cdef class _PolicyTreeNode:
4545
trans_prob = self._agent.transition_model.probability(sp, s, self.action)
4646
obsrv_prob = self._agent.observation_model.probability(o, sp, self.action)
4747
if len(self.children) > 0:
48-
subtree_value = self.children[o].values[s] # corresponds to V_{oi(p)} in paper
48+
subtree_value = self.children[o].values[sp] # corresponds to V_{oi(p)} in paper
4949
else:
5050
subtree_value = 0.0
5151
reward = self._agent.reward_model.sample(s, self.action, sp)

0 commit comments

Comments
 (0)