feat(active_inference): Expected Free Energy decomposition figure#20
Merged
Conversation
…agmatic/epistemic) Visualise the closed-form Expected Free Energy decomposition added in the prior commit. figure_efe_decomposition (src/visualizations/figures.py) renders a two-panel byte-deterministic chart: left stacks G(pi)=risk+ambiguity per T-maze policy with the goal-seeking minimiser marked; right shows the equal-and-opposite pragmatic/epistemic split. Computed in closed form (no sampling). Registered across all four figure contracts so every gate stays green: FIGURE_GENERATORS, figures.yaml (alt + caption), gates REQUIRED_OUTPUTS, and build_figure_source_map provenance (-> all_figures_mapped stays true). Figure tests 12/12; full active_inference suite 286/287, 90.3% (>=90% gate); ruff/mypy clean.
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.
Layer 2 of the EFE addition (follows #19, which landed the closed-form decomposition). Adds
figure_efe_decomposition— a two-panel byte-deterministic chart: left stacksG(π)=risk+ambiguityper T-maze policy (goal-seeking minimiser marked); right shows the equal-and-opposite pragmatic/epistemic split. Registered across all four figure contracts (FIGURE_GENERATORS, figures.yaml alt+caption, REQUIRED_OUTPUTS, figure_source_map provenance). Figure tests 12/12; full active_inference suite 286/287 at 90.3% (≥90% gate); ruff/mypy clean.