h2o (version 3.32.0.1)

h2o.varimp: Retrieve the variable importance.

Description

Retrieve the variable importance.

Usage

h2o.varimp(object)

Arguments

object

An '>H2OModel object.

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")
model <- h2o.glm(x = predictors, y = response, training_frame = pros)
h2o.varimp(model)
# }

Run the code above in your browser using DataLab