Skip to content

Add plate-notation figures to chapter 3 tutorials 2 and 4 - #51

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
Contributor

Summary

Adds plate-notation model figures to the chapter 3 graphical-models tutorials, turning the
shared-vs-hierarchical distinction into a pair of pictures the reader can compare: tutorial 2 draws the
shared centre hoisted out of the dataset plate, tutorial 4 draws the same centre staying inside the
plate as a drawn pill fed by a violet arrow from the HierarchicalFactor card.

Scripts Changed

  • scripts/chapter_3_graphical_models/tutorial_2_graphical_model.py — draws the factor graph with af.ModelPlotter, with prose on reading the plate, the hoisted shared card and the observed-data pill
  • scripts/chapter_3_graphical_models/tutorial_4_hierachical_models.py — draws the hierarchical model and contrasts it with tutorial 2's figure (no shared badge; the arrow is the weaker claim), including the hyper vs per-dataset footer split
  • notebooks/chapter_3_graphical_models/tutorial_2_graphical_model.ipynb, notebooks/chapter_3_graphical_models/tutorial_4_hierachical_models.ipynb — regenerated from the scripts

Upstream PR

PyAutoLabs/PyAutoFit#1617

Test Plan

  • Both tutorial scripts run headless to completion (exit 0)
  • Smoke tests pass for the affected workspace

Merge gate: 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
…1616)

Draw the shared graphical model (tutorial 2) and the hierarchical model
(tutorial 4) with `af.ModelPlotter`, with prose checked against the
figures the tutorials actually produce.

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 3cadd7d into main Sep 12, 2026
7 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