Wrapping MOJOs using the H2O MOJO API
Let's first touch upon a few precursors before learning how to wrap MOJOs inside larger software programs.
Obtaining the MOJO runtime
You can download h2o-genmodel.jar
when you download your MOJO from the IDE after model building. This is simply a matter of adding a new argument to your download statement, as follows:
Model.download_mojo(path="path/for/my/mojo", get_genmodel_jar=True)
This method of obtaining h2o-genmodel.jar
generally is not done in a governed production deployment. This is because h2o-genmodel.jar
is generic to all MOJOs and is a concern of the software developer and not the data scientists.
Software developers can download the MOJO runtime from the Maven repository at https://mvnrepository.com/artifact/ai.h2o/h2o-genmodel. The h2o-genmodel.jar
is backward-compatible; it should...