LogisticRegression: Unknown label type: ‘continuous’ using sklearn in python

You are passing floats to a classifier which expects categorical values as the target vector. If you convert it to int it will be accepted as input (although it will be questionable if that’s the right way to do it). It would be better to convert your training scores by using scikit’s labelEncoder function. The … Read more

Numpy ValueError: setting an array element with a sequence. This message may appear without the existing of a sequence?

You’re getting the error message because you’re trying to set an array element with a sequence. I’m not trying to be cute, there — the error message is trying to tell you exactly what the problem is. Don’t think of it as a cryptic error, it’s simply a phrase. What line is giving the problem? … Read more