You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means that the solver is trying to evaluate the probability of a particular string in an array of floats.
This error is likely caused by returning an array of Floats instead of a Distribution object in transition, observation or initialstate. Judging by the error, it seems like your states are Strings. So instead of something like
return [0.1, 0.2, 0.7]
you should use a distribution object such as a 'SparseCat'
returnSparseCat(["a", "b", "c"], [0.1, 0.2, 0.7])
in your transition, observation, and initialstate functions.
Side note: for future questions, it may be more helpful to post in the discussions section of POMDPs.jl https://github.com/JuliaPOMDP/POMDPs.jl/discussions rather than as an issue in this particular solver.
MethodError: no method matching pdf(::Array{Float64, 3}, ::String)
The text was updated successfully, but these errors were encountered: