Repository navigation
Draw the graphical model in the graphical_models feature example - #153
Merged
Merged
Conversation
…AutoFit#1616) Snapshot taken at laptop shutdown; not tested/shipped. Resume from the active.md row of model-figures-graphical in PyAutoMind. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0178yLU9v19GtACcRPFggjGa
Draw the shared graphical model and a new hierarchical model with `af.ModelPlotter`, with prose checked against the figures the script actually produces. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AmyBwcVQBrWE4jSTqdATY6
This was referenced Sep 12, 2026
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
Draws the graphical model in the graphical-models feature example, using the new plate-notation
support in
af.ModelPlotter(PyAutoFit phase 4 of the model-figures epic), and adds a hierarchicalsection so the shared-vs-hierarchical distinction is shown rather than only described.
Scripts Changed
scripts/features/graphical_models.py— draws the factor graph withaf.ModelPlotter(factor_graph.global_prior_model).figure(), with prose framing the figure as the model's map andinfoas its legend; adds a Hierarchical Models section composing anaf.HierarchicalFactorover each dataset'scentreand drawing itnotebooks/features/graphical_models.ipynb— regenerated from the script (never hand-edited)Upstream PR
PyAutoLabs/PyAutoFit#1617
Test Plan
scripts/features/graphical_models.pyruns headless to completion (exit 0)Merge gate: this PR is blocked behind the upstream PyAutoFit PR — the figure API is unreleased, so
the library PR must be merged (and released) first.
Opened under Heart RED (release validation FAILED, stage integrate — unrelated autolens scripts) with explicit human authorisation on 2026-09-12; merge stays human via /prm.
Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code
https://claude.ai/code/session_01AmyBwcVQBrWE4jSTqdATY6