h2o.varimp,H2OAutoML-method | R Documentation |
Retrieve the variable importance.
## S4 method for signature 'H2OAutoML'
h2o.varimp(object, top_n = 20, num_of_features = NULL)
object |
An H2OAutoML object. |
top_n |
Show at most top_n models |
num_of_features |
Integer specifying the number of features returned based on the maximum importance across the models. Use NULL for unlimited. Defaults to NULL. |
## 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.