sklift.metrics.metrics.perfect_qini_curve(y_true, treatment, negative_effect=True)[source]

Compute the perfect (optimum) Qini curve.

For computing the area under the Qini Curve, see qini_auc_score().

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

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

  • negative_effect (bool) – If True, optimum Qini Curve contains the negative effects (negative uplift because of campaign). Otherwise, optimum Qini Curve will not contain the negative effects.


Points on a curve.

Return type

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

See also

qini_curve(): Compute Qini curve.

qini_auc_score(): Compute the area under the Qini curve.

plot_qini_curves(): Plot Qini curves from predictions..