Repository navigation
Check both pixelization log determinants in Lens imaging guards - #370
Merged
Merged
Conversation
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
Check the inversion’s regularization and curvature log determinants directly. Both can contribute even when their net effect on the fit score nearly cancels. Companion to PyAutoLabs/autogalaxy_workspace_test#138. Closes #369.
Scripts Changed
scripts/imaging/_pixelization_guard.pychecks the inversion and both determinant terms.scripts/imaging/model_fit.pyuses the shared guard.scripts/imaging/visualization/modeling_visualization_rectangular_jit.pyandscripts/imaging/visualization/modeling_visualization_delaunay_jit.pyuse the guard for CPU and JAX fits.Test Plan
The cancellation fixture passed with a 0.80-nat net gap and terms of 122.67 and 131.46. The guard rejected a missing inversion and either zero term. The imaging model-fit script passed end to end, and both full-resolution visualization scripts passed their CPU and JAX likelihood guards. Targeted Delaunay smoke passed. Independent pre-ship review returned CLEAN.
Known JIT timing failures
Both full-resolution visualization scripts then failed their separate assertion that the cached call takes less than half the first call’s time.
The independent reviewer reproduced both failures on main. Both scripts already have NEEDS_FIX entries in
config/build/no_run.yaml. The timing assertions remain enabled. The maintainer approved opening this PR with these failures documented.