Skip to content

Commit

Permalink
fix error with observation function
Browse files Browse the repository at this point in the history
  • Loading branch information
zsunberg committed Jun 1, 2019
1 parent b6853db commit 0011d66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/discrete_explicit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ POMDPModelTools.ordered_observations(m::DEP) = m.o
# TODO support O(s, a, sp, o)
# TODO initial state distribution
# TODO convert_s, etc, dimensions
# TODO better errors if T or Z return something unexpected

"""
DiscreteExplicitPOMDP(S,A,O,T,Z,R,γ)
Expand Down Expand Up @@ -102,7 +103,7 @@ function DiscreteExplicitPOMDP(s, a, o, t, z, r, discount)
m = DiscreteExplicitPOMDP(
ss, as, os,
tds, ods,
o, r,
z, r,
Dict(ss[i]=>i for i in 1:length(ss)),
Dict(as[i]=>i for i in 1:length(as)),
Dict(os[i]=>i for i in 1:length(os)),
Expand Down

0 comments on commit 0011d66

Please sign in to comment.