Commit fca42fe
synthetic-control: address CI codex R7 — deterministic low-rate exclusion regression (P2)
Add test_single_inner_nonconvergence_excluded_from_v_ranking: monkeypatch
_inner_solve_W so exactly ONE objective evaluation (the uniform-start eval) reports
conv=False, then assert (a) the any-occurrence "during nested V selection" warning fires
and (b) the selected V is a genuine small-MSPE fit (res.mspe_v < 1.0, not the large
penalty) — i.e. the truncated candidate was EXCLUDED from the argmin, not merely warned.
Complements the blanket-failure (inner_max_iter=1) test. Test-only change.
(Reaches the module via importlib since the diff_diff.synthetic_control attribute is the
convenience function, which shadows the submodule — same pattern as diff_diff.trop.)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 08957d6 commit fca42fe
1 file changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
325 | 360 | | |
326 | 361 | | |
327 | 362 | | |
| |||
0 commit comments