Repository navigation
graphical: analytic_gaussian on the moments projection — un-park + smoke, seeded Dynesty column (PyAutoFit#1654 phase 2) - #105
Merged
Conversation
… (#1654) run_autofit_ep takes projection= (default "moments") and passes af.LaplaceOptimiser(projection=projection); the "autofit EP (Laplace)" labels become "(moments)". analytic_gaussian_collapse.py reports a per-seed "scatter within 0.5 std_ref of the closed form" check (SCATTER_CHECK_GATES, reported but not yet gating). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Up1fQmjtGAh4RhLrWHfcfg
…ments runs (#1654) analytic_gaussian.py PARITY PASS 41/41; analytic_gaussian_priors.py 43/48 (gaussian/truncated 16/16, loggaussian 11/16, filed as a Mind bug); analytic_gaussian_collapse.py 5/5 with the scatter check 4/5 (hierarchical factors fall back to the mode path: 3 bounded outer variables). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Up1fQmjtGAh4RhLrWHfcfg
…priors park (#1654) analytic_gaussian.py comes off no_run.yaml and joins smoke_tests.txt after the collapse script (84-119 s locally under the smoke profile, 300 s cap). analytic_gaussian_priors.py stays parked with its 2026-09-30 reason: the loggaussian family misses 11/16 under the moments projection. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Up1fQmjtGAh4RhLrWHfcfg
Unseeded, the graphical column's leg-B sigma cell passed or failed on sampler noise (2 of 6 smoke-profile runs exited 1; a 0.111 against 0.10) with the EP column green each time. SeededDynestyStatic passes a seeded dynesty rstate, and run_joint_fit seeds random/numpy.random for the initializer. Three repeated runs now print identical tables, 41/41 PASS. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Up1fQmjtGAh4RhLrWHfcfg
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
Phase 2 of PyAutoFit#1654: the analytic Gaussian EP scripts now run the autofit EP column with
af.LaplaceOptimiser(projection="moments")(the nested-quadrature projection added in PyAutoFit#1656).analytic_gaussian.pypasses parity 41/41 on the moments path, so it is un-parked fromno_run.yamland added to the smoke gate. The joint DynestyStatic fit is now seeded, because unseeded runs flaked on the graphical column (2 of 6 smoke runs exited 1 with EP green).analytic_gaussian_priors.pystays parked with a re-dated reason: its loggaussian leg fails on a library Jacobian finding, filed as a Mind bug prompt.Upstream PR
PyAutoLabs/PyAutoFit#1656 — merged 2026-09-30, unreleased. This PR is release-gated on PyAutoFit: the scripts use
projection="moments", which exists only on PyAutoFit main.Scripts Changed
scripts/graphical/analytic_autofit.py—run_autofit_ep(..., projection="moments")passes through toaf.LaplaceOptimiser(projection=projection); addsSeededDynestyStatic(injectsrstateintosearch_kwargs) and seedsrandom/numpy.randominrun_joint_fit.scripts/graphical/analytic_gaussian.py— labels "(Laplace)" → "(moments)";__Status__docstring and run numbers rewritten from the 2026-09-30 runs.scripts/graphical/analytic_gaussian_priors.py— labels and docstring updated; still parked inno_run.yamlwith a re-dated reason (loggaussian library finding).scripts/graphical/analytic_gaussian_collapse.py— per-seed 0.5·std_ref scatter check, reported but not gating (SCATTER_CHECK_GATES = False); docstring explains the mode-path fallback.config/build/no_run.yaml— un-parkanalytic_gaussian.py; re-date the priors park reason.smoke_tests.txt— addgraphical/analytic_gaussian.pyafter the collapse script.Results
Real runs at seed 0 unless stated.
analytic_gaussian.py— PARITY: PASS (41/41)After seeding, 3 smoke-profile runs (96 / 130 / 104 s) gave byte-identical tables.
analytic_gaussian_priors.py— PARITY: FAIL (43/48), stays parkedThe minimal EP referee passes on loggaussian (1.8164 ± 0.3716). The diagnosis is two Jacobian inconsistencies in the library:
_OuterAxis.to_physicaladds log|dx/du| to a cavity that is already a base-space density.PriorFactoruses a physical density against a base-space cavity.Fixing both in a scratch monkeypatch recovers 1.8161 ± 0.3716. The follow-up is filed as the Mind bug prompt
draft/bug/autofit/ep_moments_loggaussian_transformed_scatter.md.analytic_gaussian_collapse.py— COLLAPSE CONFIG: PASS (5/5)The scatter check passes on 4/5 seeds and is non-gating. Seed 0 misses because its hierarchical factors fall back to the mode path: three finite-limit outer variables exceed
moment_max_outer=2. That library change is the second item of the same Mind prompt.Smoke
analytic_gaussian.pytook 129.5 s against the 300 s cap.origin/main,analytic_gaussian.pyalone passed in 119.0 s under the smoke profile.Test Plan
run_smoke.pyrunner,profile_smoke.yaml) passes 15/15 on this branch (177 s)graphical/analytic_gaussian.pyre-run under the smoke profile after the rebase: PASS, 119.0 s (cap 300 s)Heart RED override (development only)
--json, ts 2026-09-30T12:42:09Z): "release validation FAILED (stage integrate)". Yellow: "workspace validation not passing (0 failed, 1 timeout, cloud#36404726969: autolens_test scripts/multi_dataset/rectangular.py)"; "manifest drift: public front-door organ tables (generated) — 1 mismatch(es) vs PyAutoMind/repos.yaml". Freeze: expired (clear).origin/mainclean; smoke 15/15 (177 s); single-script re-run after the rebase PASS (119.0 s); real runs as above./prm) and green required checks. It also needs library-first, which is met (#1656 merged), and the PyAutoFit release gate.🤖 Generated with Claude Code
https://claude.ai/code/session_01Up1fQmjtGAh4RhLrWHfcfg