I am trying to use boosting for prediction using the below code:
control.boost=rpart.control(maxdepth = 30,xval = 5) model.boost=boosting(class ~.,data = training,mfinal = 500,control = control.boost) #Now on testData: pred.model.boost=predict(model.boost,newdata = testData)
The test data does not contain the Y label class and I guess that is why I am getting the error:
I think because boosting using instances of missclassified instances for weighting this error is occurring.The same is not happening when I am using random forest.
can someone please help me on this??