Skip to content

analytic_gaussian: assert finite EP evidence and no ep_mean_field RuntimeWarning (PyAutoFit#1713) - #116

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/ep-evidence-nonfinite
Oct 23, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/ep-evidence-nonfinite

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Regression for PyAutoFit#1713. The seed-0 EP columns (legs A and B) now run under warnings.catch_warnings(record=True) and assert no RuntimeWarning from ep_mean_field.py plus a finite final log_evidence (leg A 62.44, leg B 167.05). A new seed-25 leg B under the default mode projection (EP only, ~3 s) reproduces the ensemble's +inf scatter-sigma evidence term (first at step 39) and asserts the library names it in both the log and ep_diagnostics.results, or that the evidence is finite (mode-projection outcomes depend on process history, as the script's docstring notes). Header docstring section and runtime note updated.

Scripts Changed

  • scripts/graphical/analytic_gaussian.py — warnings capture + finite-evidence checks on the seed-0 EP columns; new seed-25 mode-projection leg with the named-term check; docstring section and CI-cap note

Upstream PR

PyAutoLabs/PyAutoFit#1714

Test Plan

  • Whole script locally against the worktree PyAutoFit: PARITY: PASS (53/53), column runtime 122 s, wall 2m05s (< 300 s cap)
  • Smoke CI green (note: against the released PyAutoFit the seed-25 leg's named-term assertion needs #1714, so this PR is release-gated on PyAutoFit)

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

…timeWarning (PyAutoFit#1713)

Seed-0 legs A and B now run their EP columns under warnings capture and
assert no RuntimeWarning from ep_mean_field.py and a finite final
log_evidence. A new seed-25 leg B under the mode projection (EP only, ~3 s)
reproduces the +inf scatter-sigma evidence term and asserts it is named in
the log and in ep_diagnostics.results (or that the evidence is finite).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 6d6e78c into main Oct 23, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/ep-evidence-nonfinite branch October 23, 2026 15:25
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