Different policy types with particle filter #385
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hi @DonalOCois , welcome to the Julia POMDP ecosystem. It looks like your problem is in the Additionally, if you are using a particle filter, you should be defining a policy that acts on beliefs, not states. This means you should use the distribution interface or particle belief interface to interact with the belief. Since you are dealing with a belief, FunctionPolicy(b -> mean(b)[2] > 10 ? -1 : 1) Hope that helps! I'm not very familiar with the videos, so perhaps if you point to a video and give the timestamp, we can offer better-contextualized help. |
Beta Was this translation helpful? Give feedback.
Hi @DonalOCois , welcome to the Julia POMDP ecosystem.
It looks like your problem is in the
FunctionPolicy
. First, just to make sure you understand the syntax, you may want to review the docs about anonymous functions: https://docs.julialang.org/en/v1/manual/functions/#man-anonymous-functions . In particular, right now, the function in yourFunctionPolicy
returns afunction
(eithera->a[2]
ora->a[1]
) when it should just return an action (either-1
or1
).Additionally, if you are using a particle filter, you should be defining a policy that acts on beliefs, not states. This means you should use the distribution interface or particle belief interface to interact with the belief. Since you …