Learn R Programming

h2o (version 3.36.0.4)

h2o.varimp,H2OAutoML-method: Retrieve the variable importance.

Description

Retrieve the variable importance.

Usage

# S4 method for H2OAutoML
h2o.varimp(object, top_n = 20)

Arguments

object

An '>H2OAutoML object.

top_n

Show at most top_n models

Examples

Run this code
# NOT RUN {
library(h2o)
h2o.init()

f <- "https://s3.amazonaws.com/h2o-public-test-data/smalldata/prostate/prostate_complete.csv.zip"
pros <- h2o.importFile(f)
response <- "GLEASON"
predictors <- c("ID", "AGE", "CAPSULE", "DCAPS", "PSA", "VOL", "DPROS")
aml <- h2o.automl(x = predictors, y = response, training_frame = pros, max_runtime_secs = 60)
h2o.varimp(aml)
# }

Run the code above in your browser using DataLab