
Calculate lift curves from observed and predicted responses.
lift(x, y = NULL, weights = NULL, na.rm = TRUE, ...)
observed responses or resample result containing observed and predicted responses.
predicted responses if not contained in x
.
numeric vector of non-negative
case weights for the observed x
responses
[default: equal weights].
logical indicating whether to remove observed or predicted
responses that are NA
when calculating metrics.
arguments passed to other methods.
LiftCurve
class object that inherits from
PerformanceCurve
.
# NOT RUN {
## Requires prior installation of suggested package gbm to run
data(Pima.tr, package = "MASS")
res <- resample(type ~ ., data = Pima.tr, model = GBMModel)
lf <- lift(res)
plot(lf)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab