Repository navigation
PP5: add AiMTT traffic example (route choice with road works) - #314
Merged
Merged
Conversation
Add a "Real world example: active inference in traffic and mobility" section after the Summary. A single commuter chooses between two routes every day, learns the travel times with a small RxInfer filter (the route not driven is passed as `missing`), and has to adapt when road works hit the motorway for 40 days. The decision-theoretic commuter gets locked onto the detour after the road works, while the active inference commuter returns because its growing uncertainty about the motorway makes checking it worthwhile. Includes two exercises (static model with zero drift, strict goal prior) with hidden solutions, and links to the AiMTT programme. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
|
Really cool work, Dmitry. This is an exciting notebook. Can't wait to show it to the students. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a short section "Real world example: active inference in traffic and mobility" to PP5, after the Summary and before the Appendix, as discussed. It is a single-commuter version of the route-choice experiment from the AiMTT project (IWAI 2026), built with the same tools as the rewired robot.
The example
commute_learning. Travel times may drift from day to day (σ_drift), and the route that wasn't driven is passed asmissing, so its uncertainty grows while it isn't visited.J = E[-log p̂(y)]; active inference isG = J - H[q(y|r)].σ_drift = 0): the static model is slow to detect the road works, never detects that they ended, and loses almost twice as much time.Notes
commute_*,route_*andtt_*prefixes to avoid clashes. The example reusesentropy_gaussianfrom Part 2.🤖 Generated with Claude Code