Caret returns different predictions with caret train object than it does with the extracted final model
问题 I prefer to use caret when fitting models because of its relative speed and preprocessing capabilities. However, I'm slightly confused on how it makes predictions. When comparing predictions made directly from the train object and predictions made from the extracted final model, I'm seeing very different numbers. The predictions from the train object appear to be more accurate. library(caret) library(ranger) x1 <- rnorm(100) x2 <- rbeta(100, 1, 1) y <- 2*x1 + x2 + 5*x1*x2 data <- data.frame