Skip to content

FEA Add a basic RidgeCV estimator - #8349

Draft
betatim wants to merge 7 commits into
NVIDIA:mainfrom
betatim:add-ridgecv
Draft

FEA Add a basic RidgeCV estimator#8349
betatim wants to merge 7 commits into
NVIDIA:mainfrom
betatim:add-ridgecv

Conversation

@betatim

@betatim betatim commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

This adds the RidgeCV estimator. It provides ridge regression with built-in cross-validation. Modelled on the scikit-learn class https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.RidgeCV.html.

From the benchmarking I've done RidgeCV(alphas=[1.]) keeps up with Ridge in terms of performance. So implementing this in cupy seems fine instead of adding overhead by going to c++

The benchmarking related code is an effort to follow the pattern of already existing things. I didnt try to run the benchmark suite though.

Things this doesn't implement:

  • support for a custom scoring function
  • sparse X
  • metadata routing

I used AI for research/understanding, generating code and tests. Then cleaned up after that.

Towards #7824

@copy-pr-bot

copy-pr-bot Bot commented Jul 8, 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.

@github-actions github-actions Bot added the Cython / Python Cython or Python issue label Jul 8, 2026
@betatim

This comment was marked as outdated.

@betatim

This comment was marked as outdated.

@betatim

betatim commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test c9b85f1

@csadorf csadorf linked an issue Jul 16, 2026 that may be closed by this pull request
4 tasks
@betatim

betatim commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Bigger question: do we even need this in cuml itself? We could array-API'ify the one in scikit-learn instead.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEA] Add support for cross validation estimators to cuml and cuml.accel

2 participants