sklift.metrics.perfect_uplift_curve¶

sklift.metrics.metrics.perfect_uplift_curve(y_true, treatment)[source]

Compute the perfect (optimum) Uplift curve.

This is a function, given points on a curve. For computing the area under the Uplift Curve, see uplift_auc_score().

Parameters: y_true (1d array-like) – Correct (true) target values. treatment (1d array-like) – Treatment labels. Points on a curve. array (shape = [>2]), array (shape = [>2])

uplift_curve(): Compute the area under the Qini curve.
uplift_auc_score(): Compute normalized Area Under the Uplift curve from prediction scores.
plot_uplift_curve(): Plot Uplift curves from predictions.