Commit a29a8fa
Address CI AI review round 3: default boundary=0 classification, rank test
P1 (methodology): The boundary=0 default path now classifies inputs
per the REGISTRY-planned design="auto" rule. Previously the
mass-point guard only fired for boundary>0, so a dataset with
d.min()>0 and mass at d.min() would silently pass through the
default-boundary path as Design 1'. The new rule:
- boundary=0 with min(d) < 0.01 * median(d): Design 1' accepted
(support infimum effectively at 0).
- boundary=0 with min(d) >= 0.01 * median(d):
* modal fraction at min(d) > 2%: mass-point design -> raise
NotImplementedError pointing to the 2SLS / Phase 2 path.
* otherwise: ambiguous -> raise ValueError asking the caller
to pass boundary=d.min() for the Design 1 continuous-
near-d_lower path.
- boundary>0 path unchanged (mass-point check already in place).
Removed the stale test_boundary_below_min_d_accepted: it used
U(0.01, 1) data which doesn't satisfy Design 1' under the stricter
rule. Replaced with three targeted tests:
- test_boundary_zero_design_1_prime_accepted: U(0, 1) passes.
- test_boundary_zero_with_positive_d_min_rejected: U(0.5, 1)
raises "Ambiguous design".
- test_boundary_zero_with_d_min_mass_point_rejected: mass at 0.1
with boundary=0 raises mass-point NotImplementedError.
P3 (tests): Added test_full_stack_rank_deficient_raises_valueerror
driving a 3-distinct-value dataset through both lpbwselect_mse_dpi
and the public wrapper; both must raise ValueError (or
NotImplementedError), never LinAlgError or IndexError.
172 tests pass (up from 169).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 03532fc commit a29a8fa
2 files changed
Lines changed: 107 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
| 636 | + | |
| 637 | + | |
641 | 638 | | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
646 | 651 | | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
| 652 | + | |
| 653 | + | |
651 | 654 | | |
652 | 655 | | |
653 | 656 | | |
| |||
662 | 665 | | |
663 | 666 | | |
664 | 667 | | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
665 | 704 | | |
666 | 705 | | |
667 | 706 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | | - | |
317 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
318 | 318 | | |
319 | | - | |
320 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
321 | 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 | + | |
325 | 350 | | |
326 | 351 | | |
327 | 352 | | |
| |||
369 | 394 | | |
370 | 395 | | |
371 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
372 | 422 | | |
373 | 423 | | |
374 | 424 | | |
| |||
0 commit comments