# NOT RUN {
library(tidymodels)
library(tidyverse)
library(timetk)
library(modeltime.h2o)
h2o.init()
model_fit <- automl_reg(mode = 'regression') %>%
set_engine(
engine = 'h2o',
max_runtime_secs = 30,
max_runtime_secs_per_model = 30,
project_name = 'project_01',
nfolds = 5,
max_models = 1000,
exclude_algos = c("DeepLearning"),
seed = 786
) %>%
fit(value ~ date + id, m750)
# Saves the related files needed to recreate the model
model_fit %>% save_h2o_model(path = "/dir_h2o_automl_model/")
# Loads the model
load_h2o_model(path = "/dir_h2o_automl_model/")
# Shutdown H2O when Finished.
# Make sure to save any work before.
h2o.shutdown(prompt = FALSE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab