Commit f1817af
Guarantee GaussianKernel regularization matrix is PD
Symmetrise and add trace-scaled jitter to the inverted covariance
matrix so that cholesky(regularization_matrix_reduced) in the log
evidence calculation cannot fail on floating-point noise when the
Gaussian scale is large relative to pixel spacing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 03a3b57 commit f1817af
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
0 commit comments