Function that plots the Platt Calibrations using plotly
plattCalib_evaluation( r, p, p.orig, name, nbins = 10, annot_x = c(1, 1), annot_y = c(0.1, 0.3) )
r
: binary real datap
: predicted probabilitiesp.orig
: the uncalibrated posterior probabilitiesname
: character string indicating the name of the calibrated variablenbins
: number of bins to create the plotsannot_x
: integer indicating the x axis points in which the ECE and MCE values will be plottedannot_y
: integer indicating the y axis points in which the ECE and MCE values will be plottedlist with Reliability diagram and histogram with calibrations and original predictions
Useful links