Skip to content

analytic_gaussian: pin leg A seed 140 zero-iteration convergence (PyAutoFit#1711) - #115

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/ep-zero-success-factors
Oct 23, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/ep-zero-success-factors

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Regression for PyAutoFit#1711. On the analytic_gaussian wave-1 ensemble, leg A seed 140 ended with the mu prior factor recording only NO_CHANGE updates: its Laplace optimiser met the gradient tolerance at the start point (iter=0), the projection was accepted and the message moved to the exact prior, and mu matches the closed form to a = 6e-5, b = 2e-5. This leg pins that as a converged (not stale) state: the EP column alone on seed 140 under projection="moments", judged row by row against the closed form at the leg-A tolerance (widths included), plus two flag-health checks (every factor ends with ≥1 SUCCESS or only accepted zero-iteration NO_CHANGE rows with updated true; STALE FACTORS absent from the log and ep_diagnostics.results). Adds ~2 s to a script already in smoke_tests.txt.

The checks hold against the released PyAutoFit too (ep_history.csv already wrote updated=True on NO_CHANGE rows post-projection), so no release gate applies; PyAutoFit#1712 aligns the Newton status with that.

Scripts Changed

  • scripts/graphical/analytic_gaussian.py — new docstring section and a final "Leg A, seed 140" EP-only leg: _WarningRecorder logging handler, ep_history_rows reader, parity rows + flag-health + STALE-absence checks; CI-cap note updated

Upstream PR

PyAutoLabs/PyAutoFit#1712

Test Plan

  • scripts/graphical/analytic_gaussian.py run locally against the worktree PyAutoFit: seed-140 leg cells passed: 8/8, both flag checks PASS, EP 1.9 s; whole script PARITY: PASS (49/49), wall 158 s (< 300 s cap)
  • Smoke CI green

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

…utoFit#1711)

Adds an EP-only leg on seed 140 of the exactly-Gaussian leg A, where the mu
prior factor converges at its start point (NO_CHANGE, iter=0). Asserts
closed-form parity row by row including widths, flag health (every factor
ends with a SUCCESS or only accepted zero-iteration NO_CHANGE updates) and
that the library STALE FACTORS warning did not fire. Adds ~2 s.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 97cb781 into main Oct 23, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/ep-zero-success-factors branch October 23, 2026 14:32
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