A few fixes for sklearn 1.9 pre-release - #8126
Conversation
|
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 (5)
💤 Files with no reviewable changes (1)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis PR refactors TargetEncoder GPU proxy methods to validate ChangesSklearn compatibility and GPU acceleration alignment
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@python/cuml/cuml/accel/_overrides/sklearn/preprocessing.py`:
- Around line 79-85: The _gpu_fit wrapper currently only accepts (self, X, y)
and loses keyword args like fold_ids, causing TypeError when forwarded to cuML's
GPU TargetEncoder; update the _gpu_fit method signature to accept **params
(matching _gpu_fit_transform), call _check_targetencoder_y(y) as before, and
forward those kwargs to self._gpu.fit(X, y, **params) so optional keywords such
as fold_ids are preserved.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 18be25d9-f9f2-400d-a714-9c25b879e0b9
📒 Files selected for processing (5)
python/cuml/cuml/accel/_overrides/sklearn/preprocessing.pypython/cuml/cuml_accel_tests/integration/test_svc.pypython/cuml/cuml_accel_tests/integration/test_tsvd.pypython/cuml/tests/test_sklearn_compatibility.pypython/cuml/tests/test_sklearn_import_export.py
💤 Files with no reviewable changes (1)
- python/cuml/tests/test_sklearn_compatibility.py
This addresses failures in `python/cuml/tests` and `python/cuml/cuml_accel_tests` when run with the most recent sklearn 1.9 pre-release. I did not address any failures when running the upstream sklearn test suite with `cuml.accel`, as that would require much deeper changes to setup xfails.
a17e0f3 to
eaedf26
Compare
|
/merge |
|
Completing the circle: the nightly run with the pre release passed last night: https://github.com/rapidsai/cuml/actions/runs/26085457458/job/76697334889 |
This addresses failures in
python/cuml/testsandpython/cuml/cuml_accel_testswhen run with the most recent sklearn 1.9 pre-release. With one small exception, this just required a few tweaks to some tests.I did not address any failures when running the upstream sklearn test suite with
cuml.accel, as that would require much deeper changes to setup xfails.