The slide()
function in Active Inference Mountain Car example
#331
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @Flawless1202, thanks for trying it out and for your question. The short answer is no; unfortunately you cannot exchange the message for the marginal. The longer answer: Hope this clears things up. For more details you can also consult the original paper: https://www.frontiersin.org/journals/robotics-and-ai/articles/10.3389/frobt.2019.00020/full |
Beta Was this translation helpful? Give feedback.
-
I suppose this can be moved into discussion ;) |
Beta Was this translation helpful? Give feedback.
Hi @Flawless1202, thanks for trying it out and for your question. The short answer is no; unfortunately you cannot exchange the message for the marginal.
The longer answer:
Informally, a message summarizes the information of the sub-graph that it leaves (aka "closing the box"). Therefore, the forward message (obtained by
mean_cov(getrecent(messageout(var[2], slide_msg_idx)))
) summarizes all past data (actions and observations). The marginal, obtained bymean_cov(result.posteriors[:x][2])
, is the result of two colliding messages: the forward message that summarizes the past, and the backward message that summarizes the desired future. Therefore, the marginal is biased by the desired future…