Commit c8a81d8
SamoraHunter
Fix plotting failures and robustify data cleaning
Addressed issues causing empty plots and crashes during result visualization:
- `ml_grid/results_processing/core.py`: Updated `get_clean_data` and `validate_data_structure` to robustly handle mixed data types in the 'failed' column (e.g., "Timeout" strings vs. 0/False). Updated `get_outcome_summary` to use this robust cleaning logic.
- `ml_grid/results_processing/plot_algorithms.py`:
- Removed an erroneous `.reset_index()` call on a Seaborn heatmap object (which returns an Axes, not a DataFrame).
- Added a check for empty stability data to prevent crashes when calculating standard deviation for algorithms with only a single run.
- `ml_grid/results_processing/filters.py`: Replaced brittle `data["failed"] == 0` checks with `get_clean_data()` to ensure failed runs are correctly filtered across all analysis methods.1 parent 05266b1 commit c8a81d8
4 files changed
Lines changed: 29 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
| 419 | + | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
482 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
483 | 486 | | |
484 | 487 | | |
485 | 488 | | |
| |||
558 | 561 | | |
559 | 562 | | |
560 | 563 | | |
561 | | - | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
562 | 569 | | |
563 | 570 | | |
564 | 571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
508 | | - | |
509 | | - | |
| 507 | + | |
| 508 | + | |
510 | 509 | | |
511 | 510 | | |
512 | 511 | | |
| |||
518 | 517 | | |
519 | 518 | | |
520 | 519 | | |
521 | | - | |
522 | 520 | | |
523 | 521 | | |
524 | 522 | | |
| |||
551 | 549 | | |
552 | 550 | | |
553 | 551 | | |
554 | | - | |
| 552 | + | |
555 | 553 | | |
556 | 554 | | |
557 | 555 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
| 538 | + | |
538 | 539 | | |
539 | 540 | | |
540 | 541 | | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
541 | 550 | | |
542 | 551 | | |
543 | 552 | | |
| |||
560 | 569 | | |
561 | 570 | | |
562 | 571 | | |
563 | | - | |
| 572 | + | |
| 573 | + | |
564 | 574 | | |
565 | 575 | | |
566 | 576 | | |
| |||
813 | 823 | | |
814 | 824 | | |
815 | 825 | | |
816 | | - | |
| 826 | + | |
817 | 827 | | |
818 | 828 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
195 | 199 | | |
196 | 200 | | |
197 | 201 | | |
| |||
0 commit comments