-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FullyObservablePOMDP
broken obsindex
#480
Comments
Isn't the fix just to define POMDPs.obsindex(pomdp::FullyObservablePOMDP{<:Any, S, A}, o::S) where {S, A} = stateindex(pomdp.mdp, o) |
In fact, why are there any type parameters at all? Seems like we can just drop them in |
Yeeeep it does seem unnecessary. The only reason I see to keep the state type parameter is to assert that the observation really is a valid state, preventing it from either failing silently or relying on |
Yeah, we should just get rid of This is an ancient leftover from the early days of Julia where you either needed those parameters or the coders (i.e. me) did not realize you didn't need them. |
fixed by #485 |
obindex
definition wrongly assumes that parametric type order forFullyObservablePOMDP
is{S,A,...}
when it really is{M,S,A}
. Consequently, a method error is always raised.POMDPs.jl/lib/POMDPTools/src/ModelTools/fully_observable_pomdp.jl
Line 6 in cc15fe9
POMDPs.jl/lib/POMDPTools/src/ModelTools/fully_observable_pomdp.jl
Line 17 in cc15fe9
The text was updated successfully, but these errors were encountered: