View source: R/021-validation-program.R
| crossed_grouped_cv | R Documentation |
Cross-classified grouped cross-validation
crossed_grouped_cv(
data,
formula,
family = stats::binomial(),
groups = c("participant_id", "item_id"),
v = 5L,
metric = c("log_loss", "brier", "accuracy"),
seed = 1L
)
data |
Data frame. |
formula |
Model formula. |
family |
GLM family. |
groups |
Crossed grouping columns. |
v |
Number of folds. |
metric |
Metric: log loss, Brier score, or accuracy. |
seed |
Random seed. |
An 'eye_crossed_grouped_cv' object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.