Skip to content

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

@jagapiou

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.

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