h2o.varimp,H2OModel-method | R Documentation |
Retrieve the variable importance.
## S4 method for signature 'H2OModel'
h2o.varimp(object)
object |
An H2OModel object. |
## 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.