View source: R/calibration_curve.R
Shows the calibration curve of a set of predictions. This is the ratio of the smoothed histogram of predicted probabilities for the "ones" to the smoothed histogram of all predicted probabilities. This estimates the proportion of class "one" that receives a given predicted probability. Ideally these should be equal.
1 | calibration_curve(predictions, responses)
|
predictions |
vector of predicted probabilities |
responses |
vector of zeroes and ones denoting the truth |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.