-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DEP Deprecate 'normalize' in ridge models #17772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEP Deprecate 'normalize' in ridge models #17772
Conversation
…nto deprecate_normalize_ridge
…nto deprecate_normalize_ridge
…nto deprecate_normalize_ridge
…nto deprecate_normalize_ridge
…linear models... oh well...
…/scikit-learn into deprecate_normalize_ridge
Maybe @lorentzenchr could have a look? Not that there are still problems with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have just some questions. Otherwise this seems solid.
There is a merge conflict. Please merge main in order for the merge button to reappear. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I added a small commit for a bit more detail of the FutureWarning for the elastic net. I hope, it's correct.
@maikia Thank you for this PR and your whole work on deprecating normalize
in linear models.
The test |
tried to merge main to see if this helps.... I cannot replicate locally |
Test # FIXME: 'normalize' to be removed in 1.2
@pytest.mark.filterwarnings("ignore:'normalize' was deprecated")
def test_enet_ridge_consistency |
I think you need to pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
thx @maikia @lorentzenchr @ogrisel ! we are getting there !!! |
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org> Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
Deprecated in sklearn: scikit-learn/scikit-learn#17772
Deprecated in sklearn: scikit-learn/scikit-learn#17772
Deprecated in sklearn: scikit-learn/scikit-learn#17772
Towards: #3020
It deprecates 'normalize' in _ridge.py:
Ridge
RidgeClassifier
RidgeCV
RidgeClassifierCV