prepare(test, ...)
"prepare"(test, ...)
data$train
) and holdout (data$holdout
) data frames. Extra method specific preparation is executed through a call to method_prepare
default
: The default method relevels the holdout set, so the holdout and train set are completely independent, and to prevent problems with certain algorithms that can't deal with different factor levels across train and holdout set