h2o.varimp-H2OFrame-method: Retrieve the variable importance.

Description Usage Arguments Examples

Description

Retrieve the variable importance.

Usage

1
2
## S4 method for signature 'H2OFrame'
h2o.varimp(object)

Arguments

object

A leaderboard frame.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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@leaderboard[1:5,])

## End(Not run)

h2o documentation built on Jan. 4, 2022, 1:09 a.m.