Calibrate a classification model.
train_classification
step to make sure the model’s predicted probabilities are well-calibrated.
Note that currently we only support calibration of already fitted models, which should always be performed
on new data not already seen during training. For more information see the
scikit-learn documentation.
Examples
ds.first_name
), datasets (ds
or ds[["first_name", "last_name"]]
) or models (referenced
by name e.g. "churn-clf"
).
Inputs
Outputs
step(..., {"param": "value", ...}) -> (output)
.
Parameters
isotonic
is a non-parametric method that fits a piecewise-constant,
strictly increasing function to the predicted probabilities. sigmoid
(Platt’s method) is a parametric
method that fits a logistic function to the predicted probabilities.It is not advised to use isotonic calibration with too few calibration samples (much fewer than 1,000) since it tends to overfit.Values must be one of the following:isotonic
sigmoid