k_fold | R Documentation |
A K-fold setting for crossvalidation
k_fold(
data,
dependent_variable = "y",
k_partitions,
seed = NULL,
as_data_frame = FALSE
)
data |
A data.frame with the whole data to be split into training and test folds. |
dependent_variable |
A string with the name of the target variable |
k_partitions |
Number of folds to be used in the K-Fold setting |
seed |
Setting a seed to reproducibility of the cross validation |
as_data_frame |
A Boolean to return the |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.