Fix Normalizer parameter cloning in ColumnTransformer - #8580
Fix Normalizer parameter cloning in ColumnTransformer#8580sylvesterkaczmarek wants to merge 3 commits into
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 (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe change adds tests for Normalizer parameter cloning and L1 normalization in ColumnTransformer. It also changes sparse QuantileTransformer subsampling to allocate the full subsample buffer before selecting nonzero samples. ChangesNormalizer validation
Sparse quantile fitting
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~15 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The Normalizer regression coverage and sparse quantile allocation update do not leave a concrete merge-blocking risk. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Out of Scope Changes checkExplanation The change to
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
|
/ok to test fe6fb7f |
Fixes #8577.
Normalizernow exposes its constructor parameters through cuML's_get_param_names, sosklearn.clone()preservesnormandcopy. This preventsColumnTransformerfrom silently rebuildingNormalizer(norm="l1")with the defaultl2norm.Regression coverage checks both direct sklearn cloning and the reported two-branch
ColumnTransformercase against sklearn.Validation:
pre-commit run --files python/cuml/cuml/_thirdparty/sklearn/preprocessing/_data.py python/cuml/tests/test_compose.pypassespython3 -m py_compileon both changed files passesgit diff --checkpassesThe focused pytest collection cannot run on this macOS host because the cuML test configuration requires
cudf; NVIDIA CI provides the RAPIDS/CUDA test environment.