Skip to content

[WIP] Implement new validation utilities - #7855

Closed
jcrist wants to merge 9 commits into
NVIDIA:mainfrom
jcrist:new-validation
Closed

[WIP] Implement new validation utilities#7855
jcrist wants to merge 9 commits into
NVIDIA:mainfrom
jcrist:new-validation

Conversation

@jcrist

@jcrist jcrist commented Mar 4, 2026

Copy link
Copy Markdown
Member

This adds a new cuml.internals.validation module with a new set of validation functions that estimators should use to validate inputs. These raise nicer error messages, are more compatible with expected sklearn UX, and put in place the plumbing necessary to expand our compatibility and checks.

In this PR I intend to add only shape/ndim checks on the inputs (as well as check_is_fitted checks). There are a number of additional validations we should add, but those can be done in a followup.

This PR is currently a WIP - pushing it up for now, but we still need to grind through updating the remaining estimators.

Supersedes #7816. Supersedes #7847. Fixes #7428.

@jcrist jcrist self-assigned this Mar 4, 2026
@jcrist jcrist added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Mar 4, 2026
@copy-pr-bot

copy-pr-bot Bot commented Mar 4, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@jcrist

jcrist commented Apr 22, 2026

Copy link
Copy Markdown
Member Author

Superseded by #7973. Closing.

@jcrist jcrist closed this Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Cython / Python Cython or Python issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Transition to new array input validation system

3 participants