Repository navigation
feat: point-source examples demonstrate solved-centre + all-to-all defaults with benchmark evidence (#678 phase D) - #453
Merged
Conversation
…faults with benchmark evidence (#678 phase D) All point_source and cluster examples move to the recommended defaults: ps.PointSolved sources with the (new) default FitPositionsImagePairAllSolved image-plane chi-squared, free-centre composition kept as the clearly documented alternative with its use-cases (informative/linked centre priors, centre-as-science, glSNe standard-candle fluxes). PointFlux feature scripts pass the free-centre FitPositionsImagePairAll explicitly. guides/point_source_pairing.py gains the truth-anchored A100 benchmark evidence (#678 phase B): the missing-image pairing discriminator (repeat pairing mis-ranks truth by 1.8e5 logL), tensor-vs-scalar source-plane weighting rankings, free-centre gradient plateau, posterior-width honesty, near-caustic domain of validity, and the cluster search-strategy caveats. Cluster modeling/start_here cite the cluster-tier evidence; stale 'lens equation cannot be differentiated' claims corrected. cluster/simulator.py: the jitted PointSolver solve now passes per-source plane_redshift (solve defaults to the FINAL plane, silently placing the z=1.0 source's images as if at z=2.0). Requires the accompanying PyAutoLens fix registering Galaxy redshift as no_flatten aux. Notebooks regenerated. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DnTmLoJjJgMTze5uAbg1Jd
…and modeling scripts The pairing guide gains a dedicated section on how FitPositionsImagePairAll(Solved) penalizes too few images (quadratic, automatic; 1e4 finite floor at zero images) vs too many (mild logarithmic Occam factor, magnification-blind — central image tolerated by construction, but so is a bright spurious image, hence the image-plane validation step). point_source/modeling.py carries the brief version; cluster/modeling.py + start_here.py state why the source-plane search chi-squared cannot see either failure mode and point at the guide for the choice. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DnTmLoJjJgMTze5uAbg1Jd
This was referenced Aug 3, 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.
Phase D of PyAutoLabs/PyAutoLens#678 — the end goal: workspace examples demonstrate the recommended defaults, with the full benchmark evidence written into the guides. PENDING RELEASE — merge only after PyAutoLabs/PyAutoLens#686 (phase C default change) ships in a release, since the demonstrated compositions rely on the new
FitPositionsImagePairAllSolveddefault.What changed
ps.PointSolvedsources with the default all-to-all solved image-plane chi-squared. Free-centre composition is kept as the clearly documented alternative with its use-cases (informative centre priors, centres linked across bands/epochs, centre-as-science, and the glSNe standard-candle flux caveat —FitFluxesSolved's flat-prior flux discards standardization priors).guides/point_source_pairing.pygains a "Benchmark evidence (truth-anchored, A100)" section with the phase B numbers: the missing-image pairing discriminator (repeat pairing mis-ranks truth by 1.8×10⁵ logL), tensor-vs-scalar weighting rankings at both tiers, the free-centre gradient plateau, posterior-width honesty, near-caustic validity, and cluster search-strategy caveats (Nautilus for cluster source-plane; gradient searches → solved image-plane).point_source/modeling.py+cluster/modeling.py/start_here.pycarry the distilled learnings inline; stale "the lens equation cannot be differentiated" claims corrected (the solved positions carry an exact implicit gradient).FitPositionsImagePairAllexplicitly, with a comment explaining why.cluster/simulator.pybug fix: the jitted solve now passes per-sourceplane_redshift—solvedefaults to the final plane, which silently placed the z=1.0 source's images as if it sat at z=2.0 (the feat: cluster examples default to PointSolved + solved position fits #436 taint). Requires theregister_tracer_classesGalaxy-redshift aux fix in PyAutoLens#686. Dataset regenerated locally end-to-end to validate.weak/features/strong_lensing/a2744.pyadopts the clusterPointSolved+ solved source-plane convention (its centre-prior loop is replaced by thesetattrswap).workspace_index.jsonrefreshed.Verification
🤖 Generated with Claude Code
https://claude.ai/code/session_01DnTmLoJjJgMTze5uAbg1Jd