Description Usage Arguments Value
View source: R/binary_search_mcr.r
Calculate the cross-validated (CV) loss of a model fitting algorithm fit_fun
.
1 2 |
y |
outcome vector |
X |
covariate matrix |
n_folds |
number of folds for CV |
fit_fun |
takes |
report_fun |
has arguments |
fit_in_sample |
whether the within-fold performance metrics should also be reported, in addition to the out-of-fold metrics. |
verbose |
show progress bar |
The mean of report_fun
's out-of-fold output, averaged across folds. If fit_in_sample=TRUE
, the within-fold output is also shown.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.