Merged
Conversation
This was only used in naive bayes, and is easy to write as a single `ElementWise` kernel.
viclafargue
approved these changes
Dec 18, 2025
Contributor
viclafargue
left a comment
There was a problem hiding this comment.
LGTM, just two questions.
Member
Author
|
/merge |
43 tasks
mani-builds
pushed a commit
to mani-builds/cuml
that referenced
this pull request
Jan 11, 2026
This applies the cleanups part of rapidsai#7317 to `cuml.naive_bayes`. It's a followup to rapidsai#7424. Highlights: - Several followup fixes from rapidsai#7424. Mostly ripping out debugging code that was leftover and no longer needed. - Removal of validation, conversion, and initialization of fitted attributes from `__init__`. - Fixed `CumlArrayDescriptor` definitions to only define fitted attributes for models that support them, rather than defining the same fitted attributes across all naive bayes estimators - Removal of `cuml.prims.array`, this module is no longer used - Simplification of code paths, removal of extraneous definitions - Docstring cleanups Given this is a very low priority module, I didn't dwell too much on the individual implementations, instead only handling the end goals in rapidsai#7317. _There are still improvements that could be made to this module_. In particular: - There are visible inefficiencies in the cupy code and category handling. Work is repeated, extraneous copies are made. Given the priorities here, I don't think this is worth working on unless someone suddenly needs these models to be much faster. - These classifiers still don't handle non-numeric inputs (like the rest of cuml does). Punting on this for now, but we likely do want to support this in the future (if for nothing else, I'd like to rip out `cuml.prims.labels` completely). I'll open a followup issue. Authors: - Jim Crist-Harif (https://github.com/jcrist) Approvers: - Victor Lafargue (https://github.com/viclafargue) URL: rapidsai#7623
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This applies the cleanups part of #7317 to
cuml.naive_bayes. It's a followup to #7424.Highlights:
__init__.CumlArrayDescriptordefinitions to only define fitted attributes for models that support them, rather than defining the same fitted attributes across all naive bayes estimatorscuml.prims.array, this module is no longer usedGiven this is a very low priority module, I didn't dwell too much on the individual implementations, instead only handling the end goals in #7317. There are still improvements that could be made to this module. In particular:
cuml.prims.labelscompletely). I'll open a followup issue.