Estimates the cross-validated risk for a given learner and evaluation function, which can be either a loss or a risk function.
cv_risk(learner, eval_fun = NULL, coefs = NULL)
A trained learner object.
A valid loss or risk function. See
loss_functions
and risk_functions
.
A numeric
vector of coefficients.