View source: R/cv_uncertainty.R
| cv_ci | R Documentation |
Computes per-learner confidence intervals for each metric column in a per-fold metrics data.frame. Supports the standard normal/t approach and the Nadeau-Bengio (2003) corrected variance for repeated K-fold CV.
cv_ci(
metrics_df,
level = 0.95,
method = c("normal", "nadeau_bengio"),
n_train = NULL,
n_test = NULL
)
metrics_df |
Data.frame with columns |
level |
Confidence level (default 0.95). |
method |
One of |
n_train |
Average number of training samples per fold. Used only when
|
n_test |
Average number of test samples per fold. Used only when
|
A data.frame with learner and, for each metric, columns
<metric>_mean, <metric>_sd, <metric>_ci_lo, and
<metric>_ci_hi.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.