Skip to content

LogisticRegression.predict_proba is incorrect when multiclass='multinomial'. #5134

Closed

Description

@jagapiou

Looking at the code for LogisticRegression.predict_proba it seems to assume that multiclass='ovr': it does sigmoid(wTx+b) and then normalizes over the classes. I think that when multiclass='multinomial' is used it should use softmax instead.

Activity

  1. agramfort commented on Aug 19, 2015

    @agramfort
    Member
  2. MechCoder commented on Aug 19, 2015

    @MechCoder
    Member

    OK, I can fix this up tonight.

  3. jagapiou commented on Aug 21, 2015

    @jagapiou
    Author

    I think this is an issue other places too: e.g. sklearn.lda.LDA.predict_proba

  4. amueller commented on Aug 24, 2015

    @amueller
    Member

    Yes, looks to be the case.... argh :-/

  5. MechCoder commented on Sep 8, 2015

    @MechCoder
    Member

    This was fixed

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