Repository navigation
sampler_pipeline: promote searches as NonLinearSearch + posterior_kind (A4 companion) - #522
Merged
Merged
Conversation
Stage 3 now tells a new search to subclass autofit.NonLinearSearch,
declare posterior_kind / test_mode_budget, take its defaults from
posterior_kind.{CHAIN,WEIGHTED,POINT}, set samples_cls and implement
run(ctx) + raw_samples_from. The family bases and the old test-mode
hooks were deprecated in PyAutoFit A4 (#1685-#1687).
Closes #520
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Oct 14, 2026
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
Companion to PyAutoFit search-extensibility A4 (PyAutoLabs/PyAutoFit#1685, #1686, #1687, merged). Stage 3 of the sampler pipeline now tells a promoted search to subclass
autofit.NonLinearSearch, declareposterior_kind/test_mode_budget, apply its kind's defaults fromautofit.non_linear.search.posterior_kind(WEIGHTED.nested_initializer_for,POINT.clipper_for,CHAIN.auto_correlation_settings_for), setsamples_cls, and implementrun(ctx)+raw_samples_from. The family-base and old test-mode advice is gone. Text follows the "Companion changes required" section of PyAutoFit#1687, paraphrased so it no longer names the deprecated hooks.Closes #520
Scripts Changed
skills/sampler_pipeline/reference.md— Stage 3search.py/samples.pyitems rewritten for NonLinearSearch + posterior kindsUpstream PR
PyAutoLabs/PyAutoFit#1687 (merged)
Companion PRs
Witness results
searches.ultranest.search,searches.pyswarms.globe,searches.pyswarms.localimport cleanly underpython -W error::FutureWarning(on main both warn: "subclasses AbstractNest/AbstractMLE, which is deprecated").-W error::FutureWarning: PySwarmsGlobal and PySwarmsLocal FIT OK at PYAUTO_TEST_MODE=1 and =2 (budgetiters=1,ClipperNone,InitializerBall); UltraNest FIT OK at PYAUTO_TEST_MODE=2 (budgetmax_iters=1, max_ncalls=1,InitializerPrior). UltraNest at TEST_MODE=1 hitsImportError: numpy.core.multiarray failed to importfrom ultranest's compiledmlfriendsextension; main fails identically (numpy ABI of the local ultranest build, not this change).autofit_workspace_test/scripts/graphical/analytic_gaussian.pywithaf.DynestyStatic(seed=): PARITY: PASS (41/41) (18/18 + 23/23), run twice, parity tables identical.skills/sampler_pipeline/reference.mdno longer names a family base,apply_test_modeoris_test_mode.Test Plan
pytest tests/— 1258 passedbin/check_skill_line_counts.sh— fails on main too (batch, prm, start_dev, create_issue over budget); sampler_pipeline not involvedValidation checklist (--auto run — plan was not pre-approved)
pytest tests/1258 passed; autofit_workspace_test / autofit_workspace_developer have no test dir (n/a) · smoke autofit_workspace_testsmoke_tests.txt15/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")🤖 Generated with Claude Code