-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
LogisticRegressionCV fails when labels are strings #5868
Copy link
Copy link
Closed
Labels
EasyWell-defined and straightforward way to resolveWell-defined and straightforward way to resolveEnhancement
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
EasyWell-defined and straightforward way to resolveWell-defined and straightforward way to resolveEnhancement