Learn R Programming

lift (version 0.0.2)

TopDecileLift: Compute the top decile lift and plot the lift curve

Description

TopDecileLift computes the commonly used top decile lift by ordering the data by the predictions, and computing the proportion of positives in the top 10%.

Usage

TopDecileLift(predicted, labels)

Arguments

predicted
A numeric vector with the classifier's predicted scores / probabilities
labels
An integer vector containing binary labels with values 0,1

Value

a scalar denoting the top decile lift

Examples

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

Run the code above in your browser using DataLab