Prepare the data for the specified test.
This allows for different implementations for regression or classification
1 2 3 4
The test for which data is prepared
Extra arguments to prepare
data A list containing prepared train (
data$train) and holdout (
data$holdout) data frames. Extra method specific preparation is executed through a call to method_prepare
Methods (by class)
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
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.