Fix hinge loss decision-function shape handling - #8245
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
This comment has been minimized.
This comment has been minimized.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe ChangesHinge Loss Test
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/merge |
Remove the stale xfail from
test_hinge_lossand passLogisticRegression.decision_functionoutput tohinge_losswithout transposing it.decision_functionalready returns sklearn-shaped scores, so the transpose was turning multiclass scores into(n_classes, n_samples)and causing the current failure.Closes #3569
Validation:
pytest -q python/cuml/tests/test_metrics.py -k "test_hinge_loss" -rxX