save_h2o_models_varimport: Save h2o automl models and variable importance

Description Usage Arguments Value Examples

View source: R/save_h2o_models_varimport.R

Description

Save h2o automl models and variable importance

Usage

1
2
3
4
5
6
save_h2o_models_varimport(
  leaderboard,
  max_top_models = NA,
  path_slug,
  time_stamp = TRUE
)

Arguments

leaderboard

A leaderboard object generated from h2o::automl.

max_top_models

Number of models to save and generate variable importance for. If NA, all models will be processed.

path_slug

A file path where the models should be saved.

time_stamp

If TRUE, a time stamp is constructed using Sys.time. User can also provide their own time stamp as a string e.g. '2020_08_01'.

Value

Function will return a list with an element for each model containing the model object and the variable importance of the model (if appropriate–not availabel for Ensemble and GLM). Individual models will be saved in the directory provided by the path_slug argument, and a list with all model objects and variable importane will also be saved to the path_slug directory.

Examples

1
2
3
## Not run: save_h2o_models_varimport(leaderboard, max_top_models = NA,
path_slug, time_stamp = TRUE)
## End(Not run)

BillPetti/h2oclasseval documentation built on Sept. 7, 2020, 12:13 p.m.