TreeliteJNI¶Treelite prediction runtime JNI functions
Hyunsu Cho
TreeliteDMatrixCreateFromCSRWithFloat32In(float[] data, int[] col_ind, long[] row_ptr, long num_row, long num_col, long[] out)¶TreeliteDMatrixCreateFromCSRWithFloat64In(double[] data, int[] col_ind, long[] row_ptr, long num_row, long num_col, long[] out)¶TreeliteDMatrixCreateFromMatWithFloat32In(float[] data, long num_row, long num_col, float missing_value, long[] out)¶TreeliteDMatrixCreateFromMatWithFloat64In(double[] data, long num_row, long num_col, double missing_value, long[] out)¶TreeliteDMatrixFree(long handle)¶TreeliteDMatrixGetDimension(long handle, long[] out_num_row, long[] out_num_col, long[] out_nelem)¶TreelitePredictorFree(long handle)¶TreelitePredictorPredictBatchWithFloat32Out(long handle, long batch, boolean verbose, boolean pred_margin, float[] out_result, long[] out_result_size)¶TreelitePredictorPredictBatchWithFloat64Out(long handle, long batch, boolean verbose, boolean pred_margin, double[] out_result, long[] out_result_size)¶TreelitePredictorPredictBatchWithUInt32Out(long handle, long batch, boolean verbose, boolean pred_margin, int[] out_result, long[] out_result_size)¶TreelitePredictorQueryGlobalBias(long handle, float[] out)¶TreelitePredictorQueryNumClass(long handle, long[] out)¶TreelitePredictorQueryNumFeature(long handle, long[] out)¶TreelitePredictorQueryResultSize(long handle, long batch, long[] out)¶TreelitePredictorQuerySigmoidAlpha(long handle, float[] out)¶checkCall(int ret)¶Check the return code of the JNI call.
TreeliteError – if the call failed.