cv_risk: Cross-validated Risk Estimation

View source: R/loss_functions.R

cv_riskR Documentation

Cross-validated Risk Estimation

Description

Estimates the cross-validated risk for a given learner and evaluation function, which can be either a loss or a risk function.

Usage

cv_risk(learner, eval_fun = NULL, coefs = NULL)

Arguments

learner

A trained learner object.

eval_fun

A valid loss or risk function. See loss_functions and risk_functions.

coefs

A numeric vector of coefficients.


tlverse/sl3 documentation built on Nov. 18, 2024, 12:46 a.m.