Skip to content

Draw the graphical model in the graphical_models feature example - #153

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/model-figures-graphical
Sep 12, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/model-figures-graphical

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

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 hierarchical
section so the shared-vs-hierarchical distinction is shown rather than only described.

Scripts Changed

  • scripts/features/graphical_models.py — draws the factor graph with af.ModelPlotter(factor_graph.global_prior_model).figure(), with prose framing the figure as the model's map and info as its legend; adds a Hierarchical Models section composing an af.HierarchicalFactor over each dataset's centre and drawing it
  • notebooks/features/graphical_models.ipynb — regenerated from the script (never hand-edited)

Upstream PR

PyAutoLabs/PyAutoFit#1617

Test Plan

  • scripts/features/graphical_models.py runs headless to completion (exit 0)
  • Smoke tests pass for the affected workspace

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

Jammy2211 and others added 2 commits September 11, 2026 12:48
…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
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Sep 12, 2026
@Jammy2211
Jammy2211 merged commit 4f121f2 into main Sep 12, 2026
6 checks passed
@Jammy2211
Jammy2211 deleted the feature/model-figures-graphical branch September 12, 2026 18:37
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant