We use cookies essential for this site to function well. Please click to help
us improve its usefulness with additional cookies. Learn about our use of cookies in our Privacy Policy.
Hello everyone,
I am trying to fit a logistics regression model in python on a data frame ‘df’. My target variable is categorical. Originally, I had 16 variables. Few of them are categorical. I created dummy variables using those categorical variables. Finally, when I run my model on data set, it popped up an error
Python’s logistic regression cannot handle multi-label classification which I suppose is the case here. Convert your problem into a binary classification problem for eg: one vs the rest and you should be good to go.