I have used H2O
for about a year now to build and score models but have never used MOJO
to do this. This is something I am currently wanting to do and I came across the function h2o.mojo_predict_df
to score out my models which will drastically increase runtime as well as allowing me to update my h2o
without the worry of my models not scoring in a later version of h2o
.
So I have downloaded my .zip
from MOJO and corresponding .jar
file, let's say they sit in the folder
C:\Folder\Test\Model.zip
C:\Folder\Test\h2o-genmodel.jar
Now am I trying to run it through, lets say my R data frame is called Data then I am using:
h2o.mojo_predict_df(frame = Data,
mojo_zip_path = "C:/Folder/Test/Model.zip",
genmodel_jar_path = "C:/Folder/Test/h2o-genmodel.jar")
However, this produces the error:
Error in safeSystem(cmd_str): SYSTEM COMMAND FAILED (exit status 127).
I am not quite sure what this is. My experience is java is limited. I tried on a different machine and got a completely different error:
"Error: Could not create a Java Virtual Machine". Error: A fatal exception has occurred. The program will exit. Unrecognised option : - 1. Error in safeSystem(cmd_str) : SYSTEM COMMAND FAILED (exit status 1).
I'm not sure why they got different errors. The code ran was exactly the same.
Any help would be appreciated!