I am trying to do bagging of SVM’s using the caret,kernlab and ipred libraries in R.My code is:
bagctrl <- bagControl(fit = svmBag$fit,
predict = svmBag$pred,
aggregate = svmBag$aggregate)
svmbag <- train(default ~ ., data = credit, “bag”,trControl = ctrl, bagControl = bagctrl)
However I got an error:
I don’t quite understand why this is happening and hence would request somebody to help me out!!
Shown below is the structure of the dataset: