From 416ba47d3f01b0ccf786442800d64d5306f452c8 Mon Sep 17 00:00:00 2001 From: fousasg Date: Wed, 6 Nov 2019 13:54:17 +0000 Subject: [PATCH] Update train_and_export_model.R Adding the initialisation of the cluster line. --- tutorials/mojo-resource/train_and_export_model.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorials/mojo-resource/train_and_export_model.R b/tutorials/mojo-resource/train_and_export_model.R index c2339bcf5..23942fdea 100644 --- a/tutorials/mojo-resource/train_and_export_model.R +++ b/tutorials/mojo-resource/train_and_export_model.R @@ -1,4 +1,5 @@ library(h2o) +h2o.init() iris.hex <- as.h2o(iris) iris.gbm <- h2o.gbm(y="Species", training_frame=iris.hex, model_id="irisgbm") -h2o.download_mojo(model=iris.gbm, path="/Users/nkkarpov/ws", get_genmodel_jar=TRUE) \ No newline at end of file +h2o.download_mojo(model=iris.gbm, path="/Users/nkkarpov/ws", get_genmodel_jar=TRUE)