cache_model: Function to Save a Generic H2o Model Object Using a Saved...

Description Usage Arguments Value See Also

Description

This function uses a saved model name as a reference in order to find a h2o models file path and then loads the h2o model using the inbuilt h2o functions. This function depends on load_model in order to load in a saved h20 model object.

Usage

1
cache_model(object = NULL, model_name, model_path = "../data-raw/models")

Arguments

object

A h2o model object. If passed as NULL then the function will attempt to load a previously saved model. Defaults to NULL.

model_name

A character string indicating the model name, this will be saved in the model_names subdirectory as an .rds object containing the h2o specified model name.

model_path

A character string indicating the path into which to save the model and the model name.

Value

A h2o model object

See Also

load_model


seabbs/h2ohelper documentation built on May 20, 2019, 5:58 p.m.