Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Getting an error 'ValueError: bad input shape (1906, 38)' when applying logistics regression model

$
0
0

@vikas_10 wrote:

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

ValueError: bad input shape (1906, 38)

can anyone help me fix it?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles