calibrate.Classification | R Documentation |
The goal of calibration is to adjust the predicted probabilities of a binary classification model so that they better reflect the true probabilities (i.e. empirical risk) of the positive class.
calibrate.Classification(
x,
predicted_probabilities,
true_labels,
algorithm = "isotonic",
hyperparameters = NULL,
verbosity = 1L,
...
)
x |
Classification object. |
predicted_probabilities |
Numeric vector: Predicted probabilities. |
true_labels |
Factor: True class labels. |
algorithm |
Character: Algorithm to use to train calibration model. |
hyperparameters |
Hyperparameters object: Setup using one of |
verbosity |
Integer: Verbosity level. |
... |
Not used |
Important: The calibration model's training data should be different from the classification model's training data.
CalibratedClassification object.
EDG
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.