Skip to content

Return training loss from LogisticRegression #26494

@rachrapp

Description

@rachrapp

Describe the workflow you want to enable

Currently there seems to be no way to retrieve the loss (or change in loss) when training a logistic regression model (sklearn.linear_model.LogisticRegression). If one changes the verbosity then this can be seen from the terminal, but also cannot be retrieved from stdout. This makes it unfeasible to actually plot training curves from logistic regression models.

Describe your proposed solution

Add train_loss as an attribute, same as e.g. classes_ or n_features_in_.

Describe alternatives you've considered, if relevant

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions