Scikit-learn

Plot Lift Chart

A lift chart is a valuable tool for assessing the effectiveness of a classifier, particularly in terms of its ability to identify and prioritize positive instances. By comparing the performance of your model against random selection, a lift chart provides clear insights into how much better your model is at predicting positive outcomes.

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

Plot lift chart

« Previous
Precision-Recall