search for: rpart_object_based_on_training_data

Displaying 1 result from an estimated 1 matches for "rpart_object_based_on_training_data".

2006 Aug 10
0
QUestion on prediction of class from rpart
Hello, I am trying to predict the classes of a test data set after training an rpart tree. When I run: predict(rpart_object_based_on_training_data, newdata = "testdata", type = "class", na.action = na.pass) I get an error message saying that a variable that is present in both training and test data sets has new levels in the test set. This is true that there are new levels for some of the variables in the test set, alth...