Skip to content

LogisticRegressionCV fails when labels are strings #5868

@dan-vine

Description

@dan-vine

While LogisticRegression can handle string labels, LogisticRegressionCV fails when labels are strings with ValueError: could not convert string to float
I guess the problem comes from calling
y_test = check_array(y_test, dtype=np.float64, ensure_2d=False)
within function _log_reg_scoring_path in file logistic.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    EasyWell-defined and straightforward way to resolveEnhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions