sklift.metrics.uplift_curve

sklift.metrics.metrics.uplift_curve(y_true, uplift, treatment)[source]

Compute Uplift curve.

For computing the area under the Uplift Curve, see uplift_auc_score().

Parameters
  • y_true (1d array-like) – Correct (true) binary target values.

  • uplift (1d array-like) – Predicted uplift, as returned by a model.

  • treatment (1d array-like) – Treatment labels.

Returns

Points on a curve.

Return type

array (shape = [>2]), array (shape = [>2])

See also

uplift_auc_score(): Compute normalized Area Under the Uplift curve from prediction scores.

perfect_uplift_curve(): Compute the perfect Uplift curve.

plot_uplift_curve(): Plot Uplift curves from predictions.

qini_curve(): Compute Qini curve.

References

Devriendt, F., Guns, T., & Verbeke, W. (2020). Learning to rank for uplift modeling. ArXiv, abs/2002.05897.