Repository navigation
Fix per-cluster std indexing in make_blobs - #3170
NIne-WIngEd wants to merge 2 commits into
Conversation
|
Could a maintainer add the bug and non-breaking labels and authorize CI for aed09ac? I don't have permission to apply labels here, and the CUDA test needs to run upstream. |
|
/ok to test aed09ac |
|
I fixed the clang-format failure in 6f86d29. |
|
/ok to test 6f86d29 |
|
CI is green on 6f86d29, including the C++ tests. I marked this ready for review. @viclafargue, could you take a look when you get a chance? |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 SummarySummary by CodeRabbit
Walkthrough
ChangesPer-cluster standard deviation selection
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to No actionable issue is established; merge after the normal CUDA CI checks pass. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 1 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
make_blobsdocumentscluster_stdas one value per cluster, but the native kernel currently indexes it by sample row. This uses the sample's label instead. It also uses a safe cluster index for the extra Box-Muller value when that index is beyond the output rows.The new test uses 65 rows and two clusters with distinct standard deviations. It compares the vector path against a scalar control for float and double output in row-major and column-major layouts.
Fixes #3168. This is a prerequisite for cuML #8482.
Validation
clang-formatcheck passed on the changed lines.git diff --checkpassed.