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