I try to locally compile a POJO of a GBM prediction model generated with H2o 3.8.1.3; I follow the instructions in the POJO class:
- create a folder
Download the h2o-genmodel.jar into the folder with:
curl http://myh2oinstancesurl:myh2oinstancesport/3/h2o-genmodel.jar > h2o-genmodel.jar
Download the successfully trained GBM model named 154 into the folder with:
curl http://myh2oinstancesurl:myh2oinstancesport/3/Models/154/java > 154.java
Compile the sources in the folder with javac 1.8.0_45 under Max OSX 10.11.3 or Fedora 23:
javac -cp h2o-genmodel.jar 154.java
Result are a bunch of compilation errors:
154.java:24: error: <identifier> expected public class 154 extends GenModel { ^ 154.java:24: error: illegal start of type public class 154 extends GenModel { ^ 154.java:24: error: ';' expected public class 154 extends GenModel { ^ 154.java:25: error: illegal start of expression public hex.ModelCategory getModelCategory() { return hex.ModelCategory.Binomial; } ^ 154.java:25: error: ';' expected public hex.ModelCategory getModelCategory() { return hex.ModelCategory.Binomial; } ^ 154.java:27: error: illegal start of expression public boolean isSupervised() { return true; } ^ 154.java:27: error: ';' expected public boolean isSupervised() { return true; } ^ 154.java:28: error: illegal start of expression public int nfeatures() { return 14; } ^ 154.java:28: error: ';' expected public int nfeatures() { return 14; } ^ 154.java:29: error: illegal start of expression public int nclasses() { return 2; } ^
...
100 errors
Is there an issue with my procedure? Or is this a bug with my setup? Is there anybody who currently can compile GBM POJOs? Thanks for your responses!