Using H2O AutoML model MOJOs to make predictions
Making predictions using MOJOs is the same as how we make predictions using model POJOS, albeit with some minor changes. Similar to POJOs, there is a dependency on the h2o-genmodel.jar
file to compile and run the model MOJO to make predictions.
So, let’s go ahead and quickly run an experiment where we can use the model MOJO with the h2o-genmodel.jar
file to make predictions. We shall write a Java program that imports the h2o-genmodel.jar
file and uses its classes to load and use our model MOJO to make predictions.
So, let’s start by creating a folder where we can keep the H2O MOJO file needed for the experiment and then write some code that uses it.
Follow these steps:
- Open your Terminal and create an empty folder by executing the following command:
mkdir H2O_MOJO cd H2O_MOJO
- Now, copy your model MOJO file to the folder by executing the following command:
mv ~/Downloads/DRF_1_AutoML_7_20220622_170835...