method_prepare(method, test, ...)
"method_prepare"(method, test, ...)
"method_prepare"(method, test, ...)
data
attribute is a list of the train and holdout data sets, that has already been prepared by prepare_data
identity(data)
default
: Default function for method-specific data preparation. There is no default method-specific preparation, returns identity
. randomForest
: Random Forest specific data preparation. Calls group_levels
on data
, then relevels the holdout set so it has no levels not found in the training set (using prepare_data
)