Commit 6273674
Address PR #110 feedback round 8: three LOOCV/validation fixes
Issue 1: Final LOOCV score infinity conversion
- Convert inf values before calling loocv_score_for_params in Rust
- Ensures final score uses same converted values that LOOCV evaluated
- λ_time/λ_unit=∞ → 0.0, λ_nn=∞ → 1e10
Issue 2: Rust LOOCV failed observation metadata
- Extend loocv_score_for_params to return Option<(usize, usize)>
- Track first failed observation (t, i) for informative warnings
- Python now includes coordinates in LOOCV failure warnings
Issue 3: D matrix validation for unbalanced panels
- Track missing values before fillna(0) with missing_mask
- Only validate monotonicity between observed periods
- Missing data no longer triggers false absorbing-state violations
Tests: 4 new tests in TestPR110FeedbackRound8 class
Docs: Updated REGISTRY.md with unbalanced panel support
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent f52b100 commit 6273674
4 files changed
Lines changed: 296 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
900 | 900 | | |
901 | 901 | | |
902 | 902 | | |
903 | | - | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
904 | 907 | | |
905 | 908 | | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | 909 | | |
| 910 | + | |
| 911 | + | |
910 | 912 | | |
911 | 913 | | |
912 | 914 | | |
913 | 915 | | |
| 916 | + | |
914 | 917 | | |
915 | | - | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
916 | 927 | | |
917 | | - | |
| 928 | + | |
918 | 929 | | |
919 | 930 | | |
920 | 931 | | |
| |||
977 | 988 | | |
978 | 989 | | |
979 | 990 | | |
980 | | - | |
| 991 | + | |
981 | 992 | | |
982 | 993 | | |
983 | 994 | | |
984 | 995 | | |
985 | 996 | | |
986 | 997 | | |
| 998 | + | |
| 999 | + | |
987 | 1000 | | |
988 | 1001 | | |
989 | 1002 | | |
990 | 1003 | | |
991 | 1004 | | |
992 | 1005 | | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
993 | 1011 | | |
994 | 1012 | | |
995 | 1013 | | |
996 | | - | |
| 1014 | + | |
997 | 1015 | | |
998 | 1016 | | |
999 | 1017 | | |
1000 | 1018 | | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
1001 | 1024 | | |
1002 | 1025 | | |
1003 | 1026 | | |
1004 | | - | |
| 1027 | + | |
1005 | 1028 | | |
1006 | 1029 | | |
1007 | 1030 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
| 553 | + | |
553 | 554 | | |
554 | 555 | | |
| 556 | + | |
555 | 557 | | |
556 | 558 | | |
557 | 559 | | |
| |||
566 | 568 | | |
567 | 569 | | |
568 | 570 | | |
| 571 | + | |
569 | 572 | | |
570 | 573 | | |
571 | 574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
| |||
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
340 | | - | |
| 341 | + | |
341 | 342 | | |
342 | 343 | | |
343 | 344 | | |
| |||
383 | 384 | | |
384 | 385 | | |
385 | 386 | | |
386 | | - | |
387 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
388 | 398 | | |
389 | | - | |
| 399 | + | |
390 | 400 | | |
391 | 401 | | |
392 | 402 | | |
393 | | - | |
| 403 | + | |
| 404 | + | |
394 | 405 | | |
395 | 406 | | |
396 | 407 | | |
| |||
429 | 440 | | |
430 | 441 | | |
431 | 442 | | |
432 | | - | |
| 443 | + | |
| 444 | + | |
433 | 445 | | |
434 | 446 | | |
435 | 447 | | |
| |||
442 | 454 | | |
443 | 455 | | |
444 | 456 | | |
445 | | - | |
| 457 | + | |
446 | 458 | | |
447 | 459 | | |
448 | 460 | | |
| |||
484 | 496 | | |
485 | 497 | | |
486 | 498 | | |
487 | | - | |
| 499 | + | |
| 500 | + | |
488 | 501 | | |
489 | 502 | | |
490 | 503 | | |
491 | 504 | | |
492 | 505 | | |
493 | | - | |
| 506 | + | |
494 | 507 | | |
495 | 508 | | |
496 | 509 | | |
497 | | - | |
| 510 | + | |
498 | 511 | | |
499 | 512 | | |
500 | 513 | | |
| |||
0 commit comments