Description Usage Arguments Examples
When calling xgb.cv, analysts
may wish to manually specify folds rather than nfolds.
This function generates an object that can be given as
an input for folds and additionally lets the analyst
specify stratifying variables to create balanced folds.
1 |
data |
a data.frame or tibble that will be used to generate folds. |
nfolds |
(integer) the number of folds |
strata |
A variable that is used to conduct stratified sampling
to create the folds. This could be a single character value or a
variable name that corresponds to a variable in |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.