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.
- Returns
Points on a curve.
- Return type
array (shape = [>2]), array (shape = [>2])
See also
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.