crossval_samples | R Documentation |
Apply a cross-validation scheme to split the data into training and testing sets.
crossval_samples(obj, data, y, ...)
obj |
A cross-validation control object. |
data |
A data frame containing the predictors. |
y |
A vector containing the response variable. |
... |
Extra arguments passed to the specific cross-validation methods. |
A tibble containing training and testing sets for each fold.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.