Commit 31cee4e
fix: return figure_of_merit, not log_likelihood, from CPU AnalysisImaging.log_likelihood_function
The CPU branch returned fit.log_likelihood while the JAX branch returned
fit.figure_of_merit. For pixelization (inversion) fits these differ by the
regularization log-det terms, so any nested sampler driven by the CPU path
optimised a chi^2-only target and drifted toward outer_coefficient ~ 0
(noise-overfit), while JAX runs converged to the physical Bayesian-evidence
maximum.
Add a regression test that exercises a Rectangular Pixelization with
Constant regularization so the two quantities differ; the existing
parametric-Sersic test still passes because fom == log_likelihood when
there is no inversion.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a5f6021 commit 31cee4e
2 files changed
Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
47 | 74 | | |
48 | 75 | | |
49 | 76 | | |
| |||
0 commit comments