“Something is wrong; all the Accuracy metric values are missing:”
问题 I took the following code out of a textbook, "Machine Learning With R" by Brett Lantz, however copied exactly the same to the console from the textbook, > library(caret) Loading required package: lattice Loading required package: ggplot2 > library(kernlab) Attaching package: ‘kernlab’ The following object is masked from ‘package:ggplot2’: alpha > set.seed(300) > ctrl <- trainControl(method = "cv", number = 10) > bagctrl <- bagControl(fit = svmBag$fit, predict = svmBag$pred, aggregate = svmBag