Repository navigation
Description
Overview
Remainder of #523. PyAutoArray#682 normalises the smoothness regularizations' H by its pseudo-determinant. That shifts every such fit's log evidence by about +9.21 nats per regularized mapper. #524 aligned the shared scorer (reconstruction_steps.log_evidence_terms with grounding=, FixedLightSystem, log_evidence_terms_np). The per-likelihood cells still compute ln det H the old way, and their pinned regression evidences are now broken: the shift is about 3e-4 relative against rtol=1e-4, so delaunay / delaunay_nn / rectangular / datacube fail their "Eager regression assertion" on today's library mains.
Plan
- Ground
Hin every cell-sideln det H, the same way as the library: delete each grounded row and column, then addΣ log P_b, usinginversion._intrinsic_regularization_blocks. The grounded indexes are fixed in advance, so the timed jitted steps stay jit-compatible. - Sites:
- the inline
compute_log_evidenceinimaging/{rectangular,delaunay,delaunay_nn}/likelihood_breakdown.pyanddatacube/delaunay/likelihood_breakdown.py; scripts/misc/likelihood_breakdown/sparse_steps.log_evidence;imaging/pixelized/matrix_free.py, both the exact path and the SLQ estimate;- the four raw
reconstruction_steps.log_evidence_termscalls, plustest_matrix_free_steps.py.
- the inline
- Re-pin each cell's
EXPECTED_LOG_EVIDENCE*from measured eager runs, documented like the existing pins. - Validate locally with
pytest scripts/misc/*/testand every lint check. Then run a RAL CPU array (ral, private library checkout at today's mains, viahpc/sync), one eager run per cell and regularization scheme. Each run checks the cell evidence againstFitImaging.log_evidenceand records the new pin.
Tier: judge — merge mode: human /prm. Heart RED: the live human authorized the development-only override and the RAL validation (2026-11-09, "Override + RAL validation").
Detailed implementation plan
Affected Repositories
- autolens_profiling (primary)
Suggested branch: feature/likelihood-breakdown-cells-pdet
Implementation Steps
- Add a shared helper in
scripts/misc/likelihood_breakdown/reconstruction_steps.py, e.g.grounding_from(inversion)andlog_det_regularization_grounded(reg_reduced, grounding). The four cells,sparse_stepsandmatrix_freeall use it. fix: likelihood_breakdown harness follows PyAutoArray#682 pseudo-determinant log det H (#523) #524'sfixed_light_system._reg_grounding_frommoves onto it. - Change each cell's
compute_log_evidenceand the jitted steps it times to take the static grounding. - Re-pin
EXPECTED_LOG_EVIDENCE_HST(delaunay, delaunay_nn, rectangular) andEXPECTED_LOG_EVIDENCE_PER_CHANNEL(datacube) from the RAL runs. - Add a unit test pinning
log_det_regularization_groundedagainstAbstractInversion.log_det_regularization_matrix_term. - Add a RAL submit
hpc/batch_cpu/submit_likelihood_breakdown_pdet_repin_ral_cpu_fp64(array over cell × scheme, eager pin runs only).
Activity
fix: re-pin likelihood-breakdown evidences after PyAutoArray#682 (#525)
Jammy2211 commentedon Nov 10, 2026
Heart RED override (development only), recorded at ship
The live human chose "Override + RAL validation" for this task (2026-11-09). That covers development shipping and the RAL CPU validation array. Merge needs a separate human
/prmwith every required check green.RED reasons at ship (verbatim):
Branch gates passed (feature/likelihood-breakdown-cells-pdet @ e90e240):
pytest scripts/misc/*/test: 1907 passed, 6 skipped.PR: #526
Merge pull request #526 from PyAutoLabs/feature/likelihood-breakdown-…
Jammy2211 commentedon Nov 10, 2026
Shipped
PR #526 merged 2026-11-10 (a8ac310) via the human's
/prm, withlintgreen. Heart was RED; the development-only override is recorded above.ln det Hnow usesreconstruction_steps.grounding_from/log_det_regularization_from, the library's pseudo-determinant from PyAutoArray#682. That covers the four likelihood-breakdown cells (dense, sparse and timed rows),sparse_steps, andmatrix_free(exact, scorer and SLQ).test_pdet_grounding.pypins the helper toAbstractInversion.log_det_regularization_matrix_term.