Get a sparse summary of the calibration
getCalibrationSummary(
prediction,
predictionType,
typeColumn = "evaluation",
numberOfStrata = 100,
truncateFraction = 0.05
)
A prediction object as generated using the
predict
functions.
The type of prediction (binary or survival)
A column that is used to stratify the results
The number of strata in the plot.
This fraction of probability values will be ignored when plotting, to avoid the x-axis scale being dominated by a few outliers.
A dataframe with the calibration summary
Generates a sparse summary showing the predicted probabilities and the observed fractions. Predictions are stratefied into equally sized bins of predicted probabilities.