Repository navigation
Show the model figure beside every model.info, and the EP state figure (PyAutoFit#1620) - #154
Merged
Merged
Conversation
Phase 6a of the model-figures rollout: every script that prints a model's info now draws af.ModelPlotter(model).figure() beside it, so the map is read before the legend. expectation_propagation.py draws the global model, refreshes the EP state figure every sweep (visualise_interval=1) and shows af.EPPlotter(kind="state") from the result's swept factor graph (PyAutoFit EPResult.factor_graph, same branch). Notebooks and catalogue regenerated. Refs PyAutoLabs/PyAutoFit#1620 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DLx38vS6F1M7K5LnpVbeZ7
Refs PyAutoLabs/PyAutoFit#1620 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DLx38vS6F1M7K5LnpVbeZ7
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.
Summary
Phase 6a of the model-figures rollout (PyAutoLabs/PyAutoFit#1620): every script that prints a model's
infonow drawsaf.ModelPlotter(model).figure()beside it, so the reader sees the map (structure: which component owns which parameter, what is fixed, shared, related or asserted) before the legend (the priors and valuesinfolists). The first figure in each script introduces that reading; later ones say what changed.features/expectation_propagation.pyadditionally draws the global model where the factor graph is composed, refreshes the EP state figure every sweep (visualise_interval=1), and after the fit showsaf.EPPlotter(kind="state")from the result's swept factor graph, reading factor status, update age and confirmed reverted updates off the graph.Explicit exceptions:
cookbooks/result.pyprints three aggregator-loaded models in a loop, so one figure follows the loop for the last model (all three share one structure);result*.infoandsamples.infoare not model prints.cookbooks/multiple_datasets.pyandfeatures/graphical_models.pywere already covered by phases 2 and 4.Opened under Heart RED
release validation FAILED (stage integrate)(unrelated autolens integrate scripts) with explicit human authorisation on 2026-09-13; merge stays human via/prm, after the upstream library PR.Scripts Changed
scripts/cookbooks/model.py— 12 figures at the remaining baremodel.infosites; map/legend reading stated oncescripts/cookbooks/multi_level_model.py— 2 figures; map/legend reading stated oncescripts/cookbooks/result.py— 1 figure after the aggregator model loopscripts/features/model_comparison.py— 3 figuresscripts/features/search_chaining.py— 5 figures; the prior-passing sites read as "same map, changed legend"scripts/features/search_grid_search.py— 1 figurescripts/searches/start_point.py— 2 figuresscripts/overview/overview_1_the_basics.py— 4 figures (one onglobal_prior_model)scripts/features/expectation_propagation.py— global-model figure at composition,visualise_interval=1,__Seeing The Sweep__block with the EP state figure,graph_model.png/graph_state.pngoutput-folder bullets (behindconfig/output.yamlmodel_figure: true)notebooks/**— the nine twins regenerated via PyAutoHandsgenerate.py autofit; catalogue byte-identicalUpstream PR
PyAutoLabs/PyAutoFit#1621 —
EPResult.factor_graph, consumed byexpectation_propagation.py. Workspace smoke CI checks out the same-named library branch; merge library first.Test Plan
PYAUTO_TEST_MODE=1 PYAUTO_SKIP_FIT_OUTPUT=1 PYAUTO_SKIP_VISUALIZATION=1 PYAUTO_SKIP_CHECKS=1, Agg backend), exit 0, no traceback; the EP script reaches theEPPlottercall and returnsrun_python.pyon the touched allowlisted scripts (overview_1, cookbooks/model, cookbooks/result) PASS; notebook leg onoverview_1_the_basics.ipynbPASS;check_navigator.pyOKprint(*.info)underscripts/(42 sites, 11 files) has a.figure(within 20 linesGenerated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DLx38vS6F1M7K5LnpVbeZ7