Description Usage Arguments Value Methods (by class)
Generic function for method-specific data preparation, if any is necessary
1 2 3 4 5 6 7 | method_prepare(method, test, ...)
## Default S3 method:
method_prepare(method, test, ...)
## S3 method for class 'randomForest'
method_prepare(method, test, ...)
|
method |
The regression or classification method that needs specific data preparation. |
test |
The test being executed, whose |
... |
Extra arguments to pass on to class methods |
A prepared data.frame
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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.