Class JniUtils


  • public final class JniUtils
    extends java.lang.Object
    DJL class that has access to XGBoost JNI.
    • Method Detail

      • checkCall

        public static void checkCall​(int ret)
      • createDMatrix

        public static long createDMatrix​(java.nio.Buffer buf,
                                         ai.djl.ndarray.types.Shape shape,
                                         float missing)
      • createDMatrix

        public static long createDMatrix​(ml.dmlc.xgboost4j.java.ColumnBatch columnBatch,
                                         float missing,
                                         int nthread)
      • createDMatrixCSR

        public static long createDMatrixCSR​(long[] indptr,
                                            int[] indices,
                                            float[] array)
      • deleteDMatrix

        public static void deleteDMatrix​(long handle)
      • deleteModel

        public static void deleteModel​(long handle)