Commit db377e6
Loosen TestScaleEquivariance[placebo] SE tolerance to rel=1e-7
The placebo SE warm-start landed in PR #369 threads ``unit_weights``
(a fit-time FW output that carries sub-ULP BLAS reduction-order
divergence) into each per-draw FW init. Across 200 placebo draws
with path-dependent sparsification in the 100-iter pre-sparsify
pass, that ULP-level input difference accumulates to ~1e-9 SE
divergence between Apple Accelerate (macOS) and OpenBLAS (Linux).
No single double satisfies both at the prior ``1e-12`` gate.
The placebo row's SE assertion is loosened to ``rel=1e-7`` (drift
detector, not bit-identity). Bootstrap and jackknife stay at
``rel=1e-14``: bootstrap dilutes the divergence by resampling from
the full unit set with replacement; jackknife uses fixed weights
and no FW re-estimation.
Bit-identity protection for placebo moves to ``test_placebo_se_matches_r``
(``TestJackknifeSERParity``), which uses the ``_placebo_indices``
test seam to feed R's exact permutations through the same normalized
inputs the dispatcher would, bypassing the platform-divergent
fit-time path. That test asserts both aggregate SE (< 1e-8 vs R) and
per-draw τ (< 1e-8 elementwise vs R), which is strictly stronger
than the prior ``1e-12`` capture-vs-capture gate.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent fd96d08 commit db377e6
1 file changed
Lines changed: 19 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2995 | 2995 | | |
2996 | 2996 | | |
2997 | 2997 | | |
2998 | | - | |
2999 | | - | |
3000 | | - | |
3001 | | - | |
| 2998 | + | |
3002 | 2999 | | |
3003 | | - | |
3004 | | - | |
3005 | | - | |
3006 | | - | |
3007 | | - | |
| 3000 | + | |
| 3001 | + | |
| 3002 | + | |
| 3003 | + | |
| 3004 | + | |
3008 | 3005 | | |
3009 | | - | |
3010 | | - | |
3011 | | - | |
| 3006 | + | |
| 3007 | + | |
| 3008 | + | |
| 3009 | + | |
| 3010 | + | |
3012 | 3011 | | |
3013 | 3012 | | |
3014 | 3013 | | |
| |||
3065 | 3064 | | |
3066 | 3065 | | |
3067 | 3066 | | |
3068 | | - | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
| 3074 | + | |
3069 | 3075 | | |
3070 | 3076 | | |
3071 | 3077 | | |
| |||
0 commit comments