Skip to contents

Fit calibration model using linear regression

Usage

fit_calibration_linear(Y_cal, Yhat_cal)

Arguments

Y_cal

Vector of true labels on the calibration set.

Yhat_cal

Vector of surrogate predictions on the calibration set.

Value

A function that maps new surrogate values to calibrated predictions.