Skip to content

Add input validation to auuc_score for missing model columns (#858)#881

Merged
jeongyoonlee merged 2 commits into
masterfrom
fix/858-auuc-score-validation
Mar 7, 2026
Merged

Add input validation to auuc_score for missing model columns (#858)#881
jeongyoonlee merged 2 commits into
masterfrom
fix/858-auuc-score-validation

Conversation

@jeongyoonlee
Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • pytest tests/test_visualize.py — 2 passed

🤖 Generated with Claude Code

jeongyoonlee and others added 2 commits March 6, 2026 13:54
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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>
Copilot AI review requested due to automatic review settings March 7, 2026 00:06
@jeongyoonlee jeongyoonlee added the enhancement New feature or request label Mar 7, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@jeongyoonlee jeongyoonlee merged commit c65fb9c into master Mar 7, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can not obtained auuc score via auuc_score (from causalml.metrics import auuc_score)

2 participants