How to use the saved .rds h2o model for prediction afterwards?
问题 I have created a R model using mlr and h2o package as below library(h2o) rfh20.lrn = makeLearner("classif.h2o.randomForest", predict.type = "prob") Done the model tunings and model initiates h2o JVM and connects R to h2o cluster, modelling is done and I saved the model as .rds file. saveRDS(h2orf_mod, "h2orf_mod.rds") I do the prediction as pred_h2orf <- predict(h2orf_mod, newdata = newdata) then i shutdown h2o h2o.shutdown() Later I re-call the saved model h2orf_mod <- readRDS("h2orf_mod.rds