I have a problem of cross-checking a dataset in R.
mypredict.rpart <- function(object, newdata){ predict(object, newdata, type = "class") } res <- errorest(win~., data=df, model = rpart, predict = mypredict.rpart)
I get this error.
Error in .rpart view (object, newdata, type = "class"): Invalid prediction for rpart object
My data set is made up of 16 numeric attributes, and the win has two coefficients 0 and 1. You can download the data set at the link
source share