Skip to content

The slide() function in Active Inference Mountain Car example #331

Answered by ThijsvdLaar
Flawless1202 asked this question in Q&A
Discussion options

You must be logged in to vote

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 by mean_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…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@Flawless1202
Comment options

@ThijsvdLaar
Comment options

@bvdmitri
Comment options

@Flawless1202
Comment options

Answer selected by Flawless1202
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #329 on July 22, 2024 12:01.