You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RFC change default scoring of LogisticRegressionCV from accuracy to logloss #33214
I propose to change the default value of LogisticRegressionCV(scoring=None) (None uses accuracy) to LogisticRegressionCV(scoring=neg_log_loss).
Reason:
Logistic Regression minimizes (penalized) log loss when fitting.
Scoring with accuracy calls LogisticRegression.predict which applies an arbitrary probability threshold of 50%.
Because of the 50% threshold, it happens that parameters with the same accuracy but better log loss (=better probability predictions) don't get selected.
Other estimators also use log loss by default for similar purposes (early stopping)
HistGradientBoostingClassifier defaults to scoring=loss which uses log loss.
GradientBoostingClassifier uses training loss function which defaults to log loss.
I think implementing this correction makes definitely sense.
Now, as for SLEP 25, I don't know how the project could transition easily without breaking people's and system's habits and assumptions. To me, this looks important enough to be part of 2.0.
Thanks for the work you've done so far. The goal of this comment is to set expectations.
Deciding on new features or substantial changes is a lengthy process. It frequently happens that no maintainer is available to take on this task right now.
Please do not create a Pull Request before a decision has been made regarding the proposed work. Making this decision can often take a significant amount of time and effort.
Activity
jjerphan commentedon Feb 5, 2026
I think implementing this correction makes definitely sense.
Now, as for SLEP 25, I don't know how the project could transition easily without breaking people's and system's habits and assumptions. To me, this looks important enough to be part of 2.0.
github-actions commentedon Feb 11, 2026
Thanks for the work you've done so far. The goal of this comment is to set expectations.
Deciding on new features or substantial changes is a lengthy process. It frequently happens that no maintainer is available to take on this task right now.
Please do not create a Pull Request before a decision has been made regarding the proposed work. Making this decision can often take a significant amount of time and effort.
OmarManzoor commentedon Feb 23, 2026
Reading the description and the points presented this makes sense to me.