Skip to content

Deprecate normalize option to all linear models#7415

Merged
rapids-bot[bot] merged 1 commit intorapidsai:mainfrom
jcrist:deprecate-normalize
Oct 31, 2025
Merged

Deprecate normalize option to all linear models#7415
rapids-bot[bot] merged 1 commit intorapidsai:mainfrom
jcrist:deprecate-normalize

Conversation

@jcrist
Copy link
Copy Markdown
Member

@jcrist jcrist commented Oct 30, 2025

This deprecates the normalize option to all linear models that still supported it.

It includes one potentially breaking change (I'm viewing it more as a bug-fix).
cuml.experimental.linear_model.Lars was documented to have normalize default to False (and clearly should have), but still had it default to True. Since it's in the experimental namespace and feels like a bug to me I've updated the value here to False with no deprecation period. The tests had to have their tolerance slightly expanded.

AFAICT no model was testing (intentionally) with normalize=True anywhere, which makes me feel pretty confident that we should rip this option out. There's no way to ensure it was even doing the right thing anymore.

Fixes #7400.

This deprecates the `normalize` option to all linear models that still
supported it.

It includes one _potentially_ breaking change.
`cuml.experimental.linear_model.Lars` was documented to have `normalize`
default to `False` (and clearly should have), but still had it default
to `True`. Since it's in the experimental namespace and feels like a bug
to me I've updated the value here to `False` with no deprecation period.
The tests had to have their tolerance slightly expanded.

AFAICT no model was testing (intentionally) with `normalize=True`
anywhere, which makes me feel pretty confident that we should rip this
option out. There's no way to ensure it was even doing the right thing
anymore.
@jcrist jcrist self-assigned this Oct 30, 2025
@jcrist jcrist requested a review from a team as a code owner October 30, 2025 22:19
@jcrist jcrist added Cython / Python Cython or Python issue improvement Improvement / enhancement to an existing function labels Oct 30, 2025
@jcrist jcrist requested a review from viclafargue October 30, 2025 22:19
Copy link
Copy Markdown
Contributor

@viclafargue viclafargue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just minor things

Comment thread python/cuml/cuml/linear_model/ridge_mg.pyx
Comment thread python/cuml/cuml/solvers/cd.pyx
Comment thread python/cuml/cuml/linear_model/linear_regression_mg.pyx
@jcrist
Copy link
Copy Markdown
Member Author

jcrist commented Oct 31, 2025

/merge

@rapids-bot rapids-bot Bot merged commit b5aec40 into rapidsai:main Oct 31, 2025
106 checks passed
@jcrist jcrist deleted the deprecate-normalize branch October 31, 2025 14:09
vardhan30016 pushed a commit to vardhan30016/cuml that referenced this pull request Nov 7, 2025
This deprecates the `normalize` option to all linear models that still supported it.

It includes one _potentially_ breaking change (I'm viewing it more as a bug-fix).
`cuml.experimental.linear_model.Lars` was documented to have `normalize` default to `False` (and clearly should have), but still had it default to `True`. Since it's in the experimental namespace and feels like a bug to me I've updated the value here to `False` with no deprecation period. The tests had to have their tolerance slightly expanded.

AFAICT no model was testing (intentionally) with `normalize=True` anywhere, which makes me feel pretty confident that we should rip this option out. There's no way to ensure it was even doing the right thing anymore.

Fixes rapidsai#7400.

Authors:
  - Jim Crist-Harif (https://github.com/jcrist)

Approvers:
  - Victor Lafargue (https://github.com/viclafargue)

URL: rapidsai#7415
rapids-bot Bot pushed a commit that referenced this pull request Dec 15, 2025
This:

- Removes the deprecated `normalize` parameter from all affected models (`cuml.linear_model`/`cuml.dask.linear_model`)
- Removes support for `normalize` at the C++ level as well
- Updates the C++ tests accordingly (mostly just deleting no longer necessary test cases)

Follow-up to #7415.

Authors:
  - Jim Crist-Harif (https://github.com/jcrist)

Approvers:
  - Anupam (https://github.com/aamijar)
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: #7611
mani-builds pushed a commit to mani-builds/cuml that referenced this pull request Jan 11, 2026
This:

- Removes the deprecated `normalize` parameter from all affected models (`cuml.linear_model`/`cuml.dask.linear_model`)
- Removes support for `normalize` at the C++ level as well
- Updates the C++ tests accordingly (mostly just deleting no longer necessary test cases)

Follow-up to rapidsai#7415.

Authors:
  - Jim Crist-Harif (https://github.com/jcrist)

Approvers:
  - Anupam (https://github.com/aamijar)
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: rapidsai#7611
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

algo: linear-model 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.

Deprecate and remove normalize option in linear models

3 participants