Skip to content

RFC change default scoring of LogisticRegressionCV from accuracy to logloss #33214

Closed

Description

@lorentzenchr

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.

@scikit-learn/core-devs @scikit-learn/communication-team @scikit-learn/documentation-team

Activity

  1. jjerphan commented on Feb 5, 2026

    @jjerphan
    Member

    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.

  2. github-actions commented on Feb 11, 2026

    @github-actions

    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.

  3. deleted a comment from kumar0205 on Feb 11, 2026
  4. OmarManzoor commented on Feb 23, 2026

    @OmarManzoor
    Contributor

    Reading the description and the points presented this makes sense to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions