Convergence check for infer
functionality
#227
-
When simulating agents in an online setting, the number of VMP iterations required until (effective) convergence varies over time. An agent with initial vague priors generally requires more VMP iterations than an agent that has already learned an accurate representation. Is there a way to stop VMP iterations once a convergence check has passed? Ideally, I'm looking for something like infer(model,
...,
free_energy=true,
iterations=n_iterations,
atol=atol) that stops iterating once |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
There is no easy mechanism to do so at the moment. You can try out using callbacks for this purpose. |
Beta Was this translation helpful? Give feedback.
-
Yeah, we should implement that |
Beta Was this translation helpful? Give feedback.
-
The code supplied here currently doesn't work. In its current state it yield
I think this is because
Unfortunately, this leads to a rather long stacktrace:
|
Beta Was this translation helpful? Give feedback.
Here is what I cam up with @ThijsvdLaar