Commit 16fb8cb
Add input validation to auuc_score for missing model columns (#858)
auuc_score (and the underlying get_cumlift) treats every DataFrame
column not in {outcome_col, treatment_col, treatment_effect_col} as
a model prediction column. When users pass a DataFrame without any
model columns, the function fails with a confusing error. Now raises
a clear ValueError explaining the expected DataFrame format.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d688549 commit 16fb8cb
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
788 | 788 | | |
789 | 789 | | |
790 | 790 | | |
791 | | - | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
792 | 794 | | |
793 | 795 | | |
794 | 796 | | |
| |||
797 | 799 | | |
798 | 800 | | |
799 | 801 | | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
800 | 811 | | |
801 | 812 | | |
802 | 813 | | |
| |||
0 commit comments