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

Prediction test error

$
0
0

@jatin_raina wrote:

r studio 1.01.136 windows 10 64 bit
prediction_test <- predict(train.tree,newdata = test ,type = "class")
Error in model.frame.default(Terms, newdata, na.action = na.action, xlev = attr(object, :
factor Workclass has new levels Local-gov, Self-emp-inc, State-gov, Without-pay
i have only combined other levels into a new level called others and rest are these above still i m facing this error pls tell how to handle this

even though i tried removing identifier ID from train and test dataset still i have this error if i remove ID from test data
prediction_test <- predict(train.tree,newdata = test ,type = "class")
Error in eval(expr, envir, enclos) : object 'ID' not found
train_gbW7HTd.csv (3.1 MB)

plz help with this ..thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles