Skip to main content
. 2019 Mar 28;6:20. doi: 10.3389/frobt.2019.00020

Algorithm 1.

The online active inference algorithm

Require: p1(x, s, u) and q1(x, s, u) //model specification
1: for t = 1 to ∞ do
2: Act-Execute-Observe // update to pt(x, s, u)
3: Infer // update to qt(x, s, u)
4: Slide // move one time slice ahead
5: end for