Learn R Programming

lift (version 0.0.2)

plotLift: 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

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

Examples

Run this code
data(churn)
plotLift(churn$predictions,churn$labels)

Run the code above in your browser using DataLab