Aan de slagGa gratis aan de slag

Measure top decile lift

Compute and compare the top decile lift of the churn prediction models using the function TopDecileLift() in the lift package. The function takes two arguments:

  1. The true churn label in the test set, test_set$Future.
  2. The model prediction: a. For logistic regression, use the prediction from the predict function. b. For random forest, use the second column of the predictions from the predict function.

The objects firstPredictions, secondPredictions, thirdPredictions, and rfPredictions, and the package lifthave been loaded for you.

Which model has the highest top decile lift?

Deze oefening maakt deel uit van de cursus

Predictive Analytics using Networked Data in R

Cursus bekijken

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen