calibrate_cv: Calibrate cross-validated model

View source: R/calibrate_cv.R

calibrate_cvR Documentation

Calibrate cross-validated model

Description

Calibrate cross-validated model trained using train_cv

Usage

calibrate_cv(
  mod,
  alg = "gam",
  learn.params = list(),
  which.repeat = 1,
  seed = NULL,
  verbosity = 1
)

Arguments

mod

rtModCV object returned by train_cv

alg

Character: "gam" or "glm", algorithm to use for calibration

learn.params

List: List of parameters to pass to the learning algorithm

which.repeat

Integer: Which repeat to use for calibration

seed

Integer: seed for the resampling

verbosity

Integer: 0: silent, > 0: print messages

Details

This is a work in progress to be potentially incorporated into train_cv

Value

List: Calibrated models, test-set labels, test set performance metrics, estimated probabilities (uncalibrated), calibrated probabilities,

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on April 24, 2024, 6:58 p.m.