Hello,
While trying to implement ada boost in R using the package “ada” I have used the following code:
# Ada-Boost:
n <- nrow(iris)
set.seed(100)
ind <- sample(1:n)
trainval <- ceiling(n * .5)
testval <- ceiling(n * .3)
train <- iris[ind[1:trainval],]
test <- iris[ind[(trainval + 1):(trainval + testval)],]
valid <- iris[ind[(trainval + testval + 1):n],]
control <- rpart.control(cp = -1, maxdepth = 14,maxcompete = 1,xval = 0)
gen1 <- ada(y~., data = train, test.x = test[,-73], test.y = test[,73],
type = "gentle", control = control, iter = 70)
However I am getting an error saying:
What does this error mean and how to rectify it?