powered by
Provides the method h2o.predict with which you can predict a MOJO or POJO Jar model from R.
h2o.predict_json(model, json, genmodelpath, labels, classpath, javaoptions)
Returns an object with the prediction result
String with file name of MOJO or POJO Jar
JSON String with inputs to model
(Optional) path name to h2o-genmodel.jar, if not set defaults to same dir as MOJO
(Optional) if TRUE then show output labels in result
(Optional) Extra items for the class path of where to look for Java classes, e.g., h2o-genmodel.jar
(Optional) Java options string, default if "-Xmx4g"
if (FALSE) { library(h2o) h2o.predict_json('~/GBM_model_python_1473313897851_6.zip', '{"C7":1}') h2o.predict_json('~/GBM_model_python_1473313897851_6.zip', '{"C7":1}', c(".", "lib")) }
Run the code above in your browser using DataLab