Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

lift

Model Lift Curves


Description

Calculate lift curves from observed and predicted responses.

Usage

lift(x, y = NULL, na.rm = TRUE, ...)

Arguments

x

observed responses or resample result containing observed and predicted responses.

y

predicted responses if not contained in x.

na.rm

logical indicating whether to remove observed or predicted responses that are NA when calculating metrics.

...

arguments passed to other methods.

Value

LiftCurve class object that inherits from PerformanceCurve.

See Also

Examples

## 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)

MachineShop

Machine Learning Models and Tools

v2.8.0
GPL-3
Authors
Brian J Smith [aut, cre]
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.