A few changes have been made to the treelite4j codebase that have made the Java tutorial become out of date.
Two I could spot were were that the Predictor constructor now only takes 3 arguments, new Predictor("path/to/compiled_model.so", -1, true); and that there is no single-datapoint prediction method, there's only batch prediction predict(DMatrix batch, boolean verbose, boolean pred_margin).
A few changes have been made to the treelite4j codebase that have made the Java tutorial become out of date.
Two I could spot were were that the Predictor constructor now only takes 3 arguments,
new Predictor("path/to/compiled_model.so", -1, true);
and that there is no single-datapoint prediction method, there's only batch predictionpredict(DMatrix batch, boolean verbose, boolean pred_margin)
.