当我尝试使用“adabag”库在 R 中执行增强功能时:
adaboost = boosting(count~., data=train, boos=TRUE, mfinal=100, coeflearn='Breiman')
我收到此错误:
Error in predict.rpart(fit, newdata = data[, -1], type = "class"):
Invalid prediction for "rpart" object
当我尝试使用“adabag”库在 R 中执行增强功能时:
adaboost = boosting(count~., data=train, boos=TRUE, mfinal=100, coeflearn='Breiman')
我收到此错误:
Error in predict.rpart(fit, newdata = data[, -1], type = "class"):
Invalid prediction for "rpart" object