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

How to train a model when train set and test contain different levels for a variable

$
0
0

@pagal_guy wrote:

Hello,

While trying to a problem on classification I came across a curious case:
The column has some levels in the train data,but the test data has some extra levels for that column and hence the error:

How to deal with these cases?
The test data doesn't contain the response variable which would have allowed me to combine the two datasets and then train the model on it.
Can someone please help me with this??

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles