Repository navigation
docs(graphical): analytic_autofit — errors_at_sigma instance path usable again (PyAutoFit#1577) - #99
Merged
Conversation
… is usable again The module docstring said errors_at_sigma(as_instance=True) could not be used on the hierarchical global model because building the instance raised inside NormalMessage. PyAutoFit#1578 fixes that (finding D6 of autofit_workspace_test#91). The read stays as_instance=False because read_joint_posteriors already indexes the sample columns positionally through prior_tuples_ordered_by_id, so the flat vector is the like-for-like shape; the docstring now says so instead of claiming the instance path is broken. No code change: referee RECOVER 5/5, smoke gate 14/14, every deterministic analytic_gaussian.py cell byte-identical. Refs PyAutoFit#1577. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E2HKd5ZocDmTyZ544eVEh4
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
The module docstring of
scripts/graphical/analytic_autofit.pysaiderrors_at_sigma(as_instance=True)could not be used on the hierarchical globalmodel at all, because building the instance calls
GaussianPrior(mean=(lower, upper), ...)for thedistribution_modeland raisesinside
NormalMessage. PyAutoFit#1578 fixes that, so the claim is now false.The read itself stays
as_instance=False:read_joint_posteriorsalready indexesthe sample columns positionally through
model.prior_tuples_ordered_by_id, so theflat vector is the like-for-like shape for the positional weighted-moment
comparison the script performs. The docstring now says that, instead of claiming
the instance path is broken. No code change.
D6 link chain: autofit_workspace_test#91 (finding D6) → PyAutoFit#1577 (issue) →
PyAutoFit#1578 (library fix).
Scripts Changed
scripts/graphical/analytic_autofit.py— module docstring only (lines ~54-57); no code changeUpstream PR
PyAutoLabs/PyAutoFit#1578 — library-first: merge only after it
Test Plan
scripts/graphical/analytic_gaussian_collapse.pyreferee: RECOVER 5/5, BIASED-TIGHT 0/5, PATHOLOGICAL 0/5, STALE 0/5, COLLAPSE CONFIG PASS 5/5.github/scripts/run_smoke.py: 14/14 PASSscripts/graphical/analytic_gaussian.py(parked NEEDS_FIX) before/after: every closed-form, minimal-EP and autofit-EP cell byte-identical; PARITY FAIL 38/41 both before and after, with the same three autofit-EP failures (leg-B sigma a=0.973 b=0.237, x_2 a=0.190, x_4 a=0.180 — the known Laplace-on-scatter caveat)[info] graphical median_pdf +/- mean|errors_at_sigma(1)|lines drift between runs becauserun_joint_fitruns an unseededDynestyStatic; a control run on the identical edited tree drifted by the same magnitude (and once read 37/41 viax_1graphical a=0.101 against a 0.10 tolerance). Filed as a PyAutoMind draft (draft/bug/graphical_ep/analytic_gaussian_unseeded_graphical_column.md) — not a regression from this PR.Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code
https://claude.ai/code/session_01E2HKd5ZocDmTyZ544eVEh4