You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LogisticRegressionCV fails when labels are strings #5868
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
I think the error is in old version. I successfully recreated the error with the old version of scikit I had, I then updated it and I am not getting the error anymore, thoughts?
Activity
mth4saurabh commentedon Nov 17, 2015
I think the error is in old version. I successfully recreated the error with the old version of scikit I had, I then updated it and I am not getting the error anymore, thoughts?
raghavrv commentedon Nov 18, 2015
I also confirm that it is no longer a problem @ master... @GaelVaroquaux can be closed...
dan-vine commentedon Nov 18, 2015
setting multi_class='multinomial' it fails also on master for me. Check the following example
raghavrv commentedon Nov 18, 2015
Ermm... sorry for suggesting to close this issue... the label encoder was not properly used... fix at #5874
FIX LabelEncoder to correctly handle string labels (Issue scikit-lear…