test(searches): JAX validation for MultiStart resurrection#59
Merged
Conversation
…n-death) Add scripts/searches/MultiStartResurrect.py: runs MultiStartAdam with resurrect off then on (identical seeded starts) and asserts both recover the Gaussian truth basin and the identical MAP, exercising the resurrect knob and the n_resurrections diagnostic. Pixelized-landscape validation where resurrection is load-bearing is A100-only; this asserts the cross-likelihood safety property. Upstream: PyAutoLabs/PyAutoFit#1400. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
Adds the JAX validation script for the
resurrect(restart-on-death) knob on the multi-start gradient MAP searches, from the upstream library PR (Phase 2 of the multi-start gradient v2 promotion, autolens_workspace_developer#101).The pixelized-landscape validation where resurrection is load-bearing is A100-only (the
searches_minimalreference proved it — job 330598 — and the library port mirrors that exactreinit_startslogic), so it cannot run in this CPU suite. What this script asserts is the property that must hold on every likelihood: the knob is safe —resurrecton and off recover the identical MAP on the 1D Gaussian, even when resurrection fires incidentally (a broad start drawn onto thesigma≈0non-finite point is redrawn).Upstream PR
PyAutoLabs/PyAutoFit#1400 (
pending-release) — must merge before this workspace PR (library-first merge gate).Scripts Changed
Added
scripts/searches/MultiStartResurrect.py— runsMultiStartAdamwithresurrectoff then on (identical seeded starts) and asserts both recover the Gaussian truth basin and the identical MAP; checksresurrect/n_resurrectionsinsamples_info.No existing scripts change (the library API change is additive/off-by-default). Not added to
smoke_tests.txt— follows theMultiStartAdam.py/MultiStartProdigy.pyfull-sweep precedent.Test Plan
python scripts/searches/MultiStartResurrect.py— passes:resurrectoff50.156/25.196/9.858(n_resurrections=0), on50.156/25.196/9.858(n_resurrections=1), identical basin.Generated by the PyAutoLabs agent workflow.