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

Skip to content

LogisticRegression freezed when X containing large number #7486

@yl565

Description

@yl565

The following code will freeze

X = np.array([0, 1e+100]).reshape(-1, 1)
y = np.array([0, 1])
clf = LogisticRegression(solver='liblinear').fit(X, y)

It seems to be a liblinear problem, the while loop here is not breaking.

Maybe a warning could be shown suggesting user to standardize data...

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