@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 thiseven 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