getCalibration: Get a sparse summary of the calibration

Description Usage Arguments Details Value

View source: R/EvaluatePlp.R

Description

Get a sparse summary of the calibration

Usage

1
getCalibration(prediction, numberOfStrata = 10, truncateFraction = 0.01)

Arguments

prediction

A prediction object as generated using the predict functions.

numberOfStrata

The number of strata in the plot.

truncateFraction

This fraction of probability values will be ignored when plotting, to avoid the x-axis scale being dominated by a few outliers.

Details

Generates a sparse summary showing the predicted probabilities and the observed fractions. Predictions are stratefied into equally sized bins of predicted probabilities.

Value

A dataframe with the calibration summary


hxia/plp-git-demo documentation built on March 19, 2021, 1:54 a.m.