Any recommendation to fix no method matching pdf? #389
Replies: 2 comments 4 replies
-
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 return [0.1, 0.2, 0.7] you should use a distribution object such as a 'SparseCat' return SparseCat(["a", "b", "c"], [0.1, 0.2, 0.7]) in your 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. |
Beta Was this translation helpful? Give feedback.
-
Thank you. |
Beta Was this translation helpful? Give feedback.
-
MethodError: no method matching pdf(::Array{Float64, 3}, ::String)
Beta Was this translation helpful? Give feedback.
All reactions