sklift.metrics.uplift_auc_score

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

Compute normalized Area Under the Uplift Curve from prediction scores.

By computing the area under the Uplift curve, the curve information is summarized in one number. For binary outcomes the ratio of the actual uplift gains curve above the diagonal to that of the optimum Uplift Curve.

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

Area Under the Uplift Curve.

Return type

float

See also

uplift_curve(): Compute Uplift curve.

perfect_uplift_curve(): Compute the perfect (optimum) Uplift curve.

plot_uplift_curve(): Plot Uplift curves from predictions.

qini_auc_score(): Compute normalized Area Under the Qini Curve from prediction scores.