get_ECE_equal_width: get_ECE_equal_width

Description Usage Arguments Value

View source: R/getECE.R

Description

Expected Calibration Error (ECE); the model is divided into 10 equal-width bins (default) and the mean of the observed (0/1) vs. mean of predicted is calculated per bin, weighted by emperical frequency of elements in bin i

Usage

1
get_ECE_equal_width(actual, predicted, bins = 10)

Arguments

actual

vector of observed class labels (0/1)

predicted

vector of uncalibrated predictions

bins

number of bins for the equal-width binning model

Value

equal-width ECE value


CalibratR documentation built on Aug. 19, 2019, 5:04 p.m.