Apply new validation to cuml.covariance - #8008
Conversation
7b296fc to
9ed5a67
Compare
|
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 (2)
💤 Files with no reviewable changes (2)
📝 WalkthroughSummary by CodeRabbit
WalkthroughReplaces per-method input conversion/validation in LedoitWolf with unified Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
🚥 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@python/cuml/cuml/covariance/ledoit_wolf.py`:
- Around line 255-259: The warnings.warn call inside the X.shape[0] == 1 branch
should include stacklevel=2 so the warning points at the user's caller; update
the warnings.warn(...) invocation in ledoit_wolf.py (the block that checks if
X.shape[0] == 1) to pass stacklevel=2 as an argument to warnings.warn to improve
the warning stack trace.
🪄 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: Pro Plus
Run ID: 1ce11a2e-df76-4657-af87-6f7b50d73e9a
📒 Files selected for processing (3)
python/cuml/cuml/covariance/ledoit_wolf.pypython/cuml/cuml_accel_tests/upstream/scikit-learn/xfail-list.yamlpython/cuml/tests/test_sklearn_compatibility.py
💤 Files with no reviewable changes (2)
- python/cuml/tests/test_sklearn_compatibility.py
- python/cuml/cuml_accel_tests/upstream/scikit-learn/xfail-list.yaml
|
/merge |
Fixes #7988.