Commit 4ffe6c1
committed
Handle missing task names in return_df when data_params lacks tasks
Use .get() to safely access data_params["tasks"]["name"] so
return_df works on models that have not been fit (e.g. loaded from
checkpoint without training data).1 parent 4bb3ce4 commit 4ffe6c1
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
863 | | - | |
864 | 863 | | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
871 | 874 | | |
872 | 875 | | |
873 | 876 | | |
| |||
0 commit comments