h2o.gains_lift_plot: Plot Gains/Lift curves

h2o.gains_lift_plotR Documentation

Plot Gains/Lift curves

Description

Plot Gains/Lift curves

Usage

h2o.gains_lift_plot(object, type = c("both", "gains", "lift"), ...)

Arguments

object

Either an H2OModel or H2OModelMetrics

type

What curve to plot. One of "both", "gains", "lift".

...

Optional arguments

Examples

## Not run: 
library(h2o)
h2o.init()
data <- h2o.importFile(
path = "https://s3.amazonaws.com/h2o-public-test-data/smalldata/airlines/allyears2k_headers.zip")
model <- h2o.gbm(x = c("Origin", "Distance"), y = "IsDepDelayed", training_frame = data, ntrees = 1)
h2o.gains_lift_plot(model)

## End(Not run)

h2o documentation built on Aug. 9, 2023, 9:06 a.m.