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
ENH do not allocate local arrays in Ridge*CV of store_cv_values is False #15652
ENH do not allocate local arrays in Ridge*CV of store_cv_values is False #15652
Conversation
ping @adrinjalali @jeromedockes @qinhanmin2014 This is the part which is easily mergeable from #15648 and could be included in the release |
and @agramfort |
Is https://codecov.io/gh/scikit-learn/scikit-learn/compare/c311efd501538ceccec0d3def70f601331e090ca...74d81d65c9beeb2971002d33c3b93e7d83980c6f/diff#D3-1505 really not tested, or is it a codecov issue? |
Nop because we slightly change the |
Good to go @adrinjalali |
[(RidgeCV(), make_regression), | ||
(RidgeClassifierCV(), make_classification)] | ||
) | ||
def test_ridge_gcv_cv_values_not_stored(ridge, make_dataset): |
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.
note that the previous implementation would have passed this test because the cv values were stored in a local variable during fit
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.
True and we don't have a real good test to detect the enhancement actually.
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 like the hack too, and the rest looks find. But it's true that we can't really test this.
I think it's really okay if we leave this for a later release
|
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.
Perhaps follow Joel's comment and move it to 0.23.
I guess this is not so important now because there're lots of bugs in RidgeCV/RidgeClassifierCV. Hopefully we can work together and fix them before 0.23. (I even wish to fix RIdgeCV/RIdgeClassifierCV in 0.22.X if possible.)
@adrinjalali @qinhanmin2014 Could we merge this PR. I moved the whats new in 0.23 |
it will be helpful for reviewing #14848 |
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.
FYI I proposed some tests in #15648
@qinhanmin2014 regarding the tests, it will be the next steps. |
Yes, I just want to inform you that there're some new tests there. |
Reference Issues/PRs
closes #15182
What does this implement/fix? Explain your changes.
Do not store a local variable storing all
cv_values
if not requested.Any other comments?