Compute the top decile lift and plot the lift curve

Description

plotLift plots the commonly used lift curve by ordering the data by the predictions, and computing the proportion of positives for each bucket.

Usage

1
plotLift(predicted, labels, cumulative = TRUE, n.buckets = 10, ...)

Arguments

predicted

A numeric vector with the classifier's predicted scores / probabilities

labels

An integer vector containing binary labels with values 0,1

cumulative

boolean. Should the cumulative lift curve be plotted or not?

n.buckets

scalar. How many buckets should be used. One can use more buckets with large datasets

...

additional parameters to the plot function

Value

lift curve

Author(s)

Steven Hoornaert, Michel Ballings, Dirk Van den Poel, Maintainer: Steven.Hoornaert@UGent.be

Examples

1
2

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.