Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make penalty parameter consistent for None #23749

Closed
@glemaitre

Description

@glemaitre

We are inconsistent with the penalty parameter for the linear models.
For the SGD and Perceptron, we will accept penalty=None while this is not the case in LogisticRegression. In LogisticRegression, we must provide the string 'none'.

I assume we could make everything consistent by accepting both None and 'none'.

@jeremiedbb WDYT?

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