Repository navigation
ENH change default scoring to log loss in LogisticRegressionCV - #33333
Conversation
|
I triggered a sync with main to see if it fixes the doc CI. |
ogrisel
left a comment
There was a problem hiding this comment.
I think it makes sense to align the outer and the inner objective functions of this model.
I wonder if d2_log_loss wouldn't be a slightly nice choice for users inspecting the scores_ attribute of the fitted estimator but no strong opinion.
|
Actually, I approved a bit quickly, there are still tests that need an update. |
That fine, isn‘t it. You can trust me to fix the tests. |
|
I have fixed the tests, was more work than I thought. |
|
@OmarManzoor You might be interested. |
OmarManzoor
left a comment
There was a problem hiding this comment.
LGTM. Thank you @lorentzenchr
Just a few nits
|
For the interested reader, see the positive effect of this change in #28995 (comment). |
Reference Issues/PRs
Fixes #33214.
What does this implement/fix? Explain your changes.
This PR changes the default
scoring=None, i.e. accuracy, toscoring=neg_log_lossinLogisticRegressionCV.AI usage disclosure
None
Any other comments?
The failing tests will be fixed, once #32828 gets merged.