Skip to content

graphical: seed the joint Dynesty fit with af.DynestyStatic(seed=) (A4 companion) - #111

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/search-ext-a4-companions
Oct 14, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/search-ext-a4-companions

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Companion to PyAutoFit A4 (PyAutoLabs/PyAutoFit#1686, merged): the joint Dynesty fit in the graphical analytic parity uses the supported search-level seed, af.DynestyStatic(path_prefix="graphical", name=name, seed=seed, **kwargs), which seeds dynesty's rstate (backend stream 1) and the initializer's live points. The SeededDynestyStatic helper is deleted and the two docstrings are updated, per the "Companion changes required" text of #1686. Parity column values move slightly (rstate now comes from backend stream 1), still deterministic.

Refs PyAutoLabs/PyAutoBrain#520 (closed by PyAutoLabs/PyAutoBrain#522)

Scripts Changed

  • scripts/graphical/analytic_autofit.py — delete SeededDynestyStatic; run_joint_fit builds af.DynestyStatic(..., seed=seed); docstring
  • scripts/graphical/analytic_gaussian.py — module docstring describes the search-level seed

Upstream PR

PyAutoLabs/PyAutoFit#1686 (merged)

Witness results

  • searches.ultranest.search, searches.pyswarms.globe, searches.pyswarms.local import cleanly under python -W error::FutureWarning (on main both warn: "subclasses AbstractNest/AbstractMLE, which is deprecated").
  • Construct + fit under -W error::FutureWarning: PySwarmsGlobal and PySwarmsLocal FIT OK at PYAUTO_TEST_MODE=1 and =2 (budget iters=1, ClipperNone, InitializerBall); UltraNest FIT OK at PYAUTO_TEST_MODE=2 (budget max_iters=1, max_ncalls=1, InitializerPrior). UltraNest at TEST_MODE=1 hits ImportError: numpy.core.multiarray failed to import from ultranest's compiled mlfriends extension; main fails identically (numpy ABI of the local ultranest build, not this change).
  • Search identifiers (output hash folders) identical on branch and main for PySwarmsGlobal, PySwarmsLocal and UltraNest.
  • autofit_workspace_test/scripts/graphical/analytic_gaussian.py with af.DynestyStatic(seed=): PARITY: PASS (41/41) (18/18 + 23/23), run twice, parity tables identical.
  • Brain skills/sampler_pipeline/reference.md no longer names a family base, apply_test_mode or is_test_mode.

Test Plan

  • scripts/graphical/analytic_gaussian.py — PARITY: PASS (41/41), twice, identical tables
  • smoke_tests.txt via .github/scripts/run_smoke.py — 15/15 PASS

Validation checklist (--auto run — plan was not pre-approved)

  • Effective level: safe (header: safe, cap: refactor → safe); Consequence: glance
  • Plan: on the issue (refactor: A4 companions — sampler reference, developer-tier searches, seeded Dynesty helper (search-extensibility) PyAutoBrain#520), unmodified since
  • Gate: tests PyAutoBrain pytest tests/ 1258 passed; autofit_workspace_test / autofit_workspace_developer have no test dir (n/a) · smoke autofit_workspace_test smoke_tests.txt 15/15 PASS on the branch (incl. graphical/analytic_gaussian.py); the six Heart workspaces are not downstream of these repos (no library change) · review CLEAN (independent review agent; every Witness claim basis-cited, UltraNest TEST_MODE=1 env caveat stated) · Heart STALE ("release validation incomplete: no rehearsal for current source")
  • Human: plan sound in hindsight?
  • Human: diff matches plan (no scope creep)?
  • Human: merge, amend, or reject — then log the outcome

🤖 Generated with Claude Code

Drop the SeededDynestyStatic helper: the search-level seed (PyAutoFit
A4) seeds dynesty's rstate and the initializer's live points.
analytic_gaussian.py still passes PARITY 41/41.

Refs PyAutoLabs/PyAutoBrain#520

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 26877bc into main Oct 14, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/search-ext-a4-companions branch October 14, 2026 14:40
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