Scikit-learn

Calibration Plot

Evaluate your classification model's performance with this Python code snippet that plots a calibration plot. It helps assess the agreement between predicted probabilities and actual outcomes across different deciles of predicted values.

lift-chartclassification

Required packages

You need below packages to use the code generated by recipe. All packages are automatically installed in MLJAR Studio.

mljar-scikit-plot>=0.3.11

Interactive recipe

You can use below interactive recipe to generate code. This recipe is available in MLJAR Studio.

In the below recipe, we assume that you have following variables available in your notebook:

  • y (type Series)
  • predicted (type Series)

Python code

# Python code will be here

Code explanation

Create a calibration plot.

« Previous
Lift Chart