Repository navigation
Add model figures to the model cookbooks (PyAutoFit#1613) - #152
Merged
Merged
Conversation
Draw the model figure (af.ModelPlotter, PyAutoFit#1614) beside model.info in the model, multi_level_model and multiple_datasets cookbooks, regenerate their notebooks, and add the new output.yaml key `model_figure: false` (opt-in model.png per search; absent key means off). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0178yLU9v19GtACcRPFggjGa
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
Workspace half of the
model-figuresepic phase 2 (PyAutoFit#1613). The three model cookbooks now draw the model figure next tomodel.infoviaaf.ModelPlotter(model).figure()— the figure is the map (which component owns which parameter; shared, fixed, related and constrained states),model.infostays the legend (priors and values). Notebooks regenerated from the scripts.config/output.yamlgains the new keymodel_figure: false(opt-inmodel.pngbesidemodel.infofor every search; an absent key means off).Needs the library branch: workspace CI checks out the same-named PyAutoFit branch, and this PR merges behind the library-first gate after PyAutoFit#1614.
Scripts Changed
scripts/cookbooks/model.py— model figure aftermodel.infoin Model Customization (chainedcentre, assertions), Tuple Parameters (2Dtag), the customised Collection (fixed values, assertion) and Extensible Models (plates); Wrap Up sentence on themodel_figureoutput keyscripts/cookbooks/multi_level_model.py— model figure for the multi-levelCollectionand the customisedgroup_level(fixedhigher_level_centre, sharednormalization)scripts/cookbooks/multiple_datasets.py— model figure offactor_graph.global_prior_modelfor the shared, variable and relational compositionsconfig/output.yaml— new keymodel_figure: falsenotebooks/cookbooks/{model,multi_level_model,multiple_datasets}.ipynb— regenerated from the scriptsUpstream PR
PyAutoLabs/PyAutoFit#1614
Test Plan
scripts/cookbooks/model.py,multi_level_model.py,multiple_datasets.pyrun headless end to end in the task worktree with the library branch onPYTHONPATH.generate.py autofit; only the three twins committed.Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code
https://claude.ai/code/session_0178yLU9v19GtACcRPFggjGa