Skip to content

test(searches): JAX validation for MultiStart resurrection#59

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/multistart-resurrection
Jul 21, 2026
Merged

test(searches): JAX validation for MultiStart resurrection#59
Jammy2211 merged 1 commit into
mainfrom
feature/multistart-resurrection

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

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_minimal reference proved it — job 330598 — and the library port mirrors that exact reinit_starts logic), 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 — resurrect on and off recover the identical MAP on the 1D Gaussian, even when resurrection fires incidentally (a broad start drawn onto the sigma≈0 non-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 — runs MultiStartAdam with resurrect off then on (identical seeded starts) and asserts both recover the Gaussian truth basin and the identical MAP; checks resurrect / n_resurrections in samples_info.

No existing scripts change (the library API change is additive/off-by-default). Not added to smoke_tests.txt — follows the MultiStartAdam.py / MultiStartProdigy.py full-sweep precedent.

Test Plan

  • python scripts/searches/MultiStartResurrect.py — passes: resurrect off 50.156/25.196/9.858 (n_resurrections=0), on 50.156/25.196/9.858 (n_resurrections=1), identical basin.

Generated by the PyAutoLabs agent workflow.

…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>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 21, 2026
@Jammy2211
Jammy2211 merged commit 3b4bae7 into main Jul 21, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/multistart-resurrection branch July 21, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant