Package ai.catboost

Class CatBoostJNI

java.lang.Object
ai.catboost.CatBoostJNI

class CatBoostJNI extends Object
  • Constructor Details

    • CatBoostJNI

      CatBoostJNI()
  • Method Details

    • catBoostHashCatFeature

      final void catBoostHashCatFeature(@Nonnull String catFeature, @Nonnull int[] hash) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostHashCatFeatures

      final void catBoostHashCatFeatures(@Nonnull String[] catFeatures, @Nonnull int[] hashes) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostLoadModelFromFile

      final void catBoostLoadModelFromFile(@Nonnull String fname, @Nonnull long[] handle, @Nullable String formatName) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostLoadModelFromArray

      final void catBoostLoadModelFromArray(@Nonnull byte[] data, @Nonnull long[] handle, @Nullable String formatName) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostFreeModel

      final void catBoostFreeModel(long handle) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetSupportedEvaluatorTypes

      final void catBoostModelGetSupportedEvaluatorTypes(long handle, @Nonnull String[][] evaluatorTypes) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelSetEvaluatorType

      final void catBoostModelSetEvaluatorType(long handle, @Nonnull String evaluatorType) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetEvaluatorType

      final void catBoostModelGetEvaluatorType(long handle, @Nonnull String[] evaluatorType) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetPredictionDimension

      final void catBoostModelGetPredictionDimension(long handle, @Nonnull int[] classesCount) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetUsedNumericFeatureCount

      final void catBoostModelGetUsedNumericFeatureCount(long handle, @Nonnull int[] numericFeatureCount) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetUsedCategoricalFeatureCount

      final void catBoostModelGetUsedCategoricalFeatureCount(long handle, @Nonnull int[] catFeatureCount) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetUsedTextFeatureCount

      final void catBoostModelGetUsedTextFeatureCount(long handle, @Nonnull int[] textFeatureCount) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetUsedEmbeddingFeatureCount

      final void catBoostModelGetUsedEmbeddingFeatureCount(long handle, @Nonnull int[] embeddingFeatureCount) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetFlatFeatureVectorExpectedSize

      final void catBoostModelGetFlatFeatureVectorExpectedSize(long handle, @Nonnull int[] featureVectorExpectedSize) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetMetadata

      final void catBoostModelGetMetadata(long handle, @Nonnull String[][] keys, @Nonnull String[][] values) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetFloatFeatures

      final void catBoostModelGetFloatFeatures(long handle, @Nonnull String[][] names, @Nonnull int[][] flat_feature_index, @Nonnull int[][] feature_index, @Nonnull int[][] has_nans, @Nonnull String[][] nan_value_treatment) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetCatFeatures

      final void catBoostModelGetCatFeatures(long handle, @Nonnull String[][] names, @Nonnull int[][] flat_feature_index, @Nonnull int[][] feature_index) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetTextFeatures

      final void catBoostModelGetTextFeatures(long handle, @Nonnull String[][] names, @Nonnull int[][] flat_feature_index, @Nonnull int[][] feature_index) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetEmbeddingFeatures

      final void catBoostModelGetEmbeddingFeatures(long handle, @Nonnull String[][] names, @Nonnull int[][] flat_feature_index, @Nonnull int[][] feature_index) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetUsedFeatureIndices

      final void catBoostModelGetUsedFeatureIndices(long handle, @Nonnull int[][] featureIndices) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelGetTreeCount

      final void catBoostModelGetTreeCount(long handle, @Nonnull int[] treeCount) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelPredict

      final void catBoostModelPredict(long handle, @Nullable float[] numericFeatures, @Nullable String[] catFeatures, @Nullable String[] textFeatures, @Nullable float[][] embeddingFeatures, @Nonnull double[] predictions) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelPredict

      final void catBoostModelPredict(long handle, @Nullable float[] numericFeatures, @Nullable int[] catFeatureHashes, @Nullable String[] textFeatures, @Nullable float[][] embeddingFeatures, @Nonnull double[] predictions) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelPredict

      final void catBoostModelPredict(long handle, @Nullable float[][] numericFeatures, @Nullable String[][] catFeatures, @Nullable String[][] textFeatures, @Nullable float[][][] embeddingFeatures, @Nonnull double[] predictions) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelPredict

      final void catBoostModelPredict(long handle, @Nullable float[][] numericFeatures, @Nullable int[][] catFeatureHashes, @Nullable String[][] textFeatures, @Nullable float[][][] embeddingFeatures, @Nonnull double[] predictions) throws CatBoostError
      Throws:
      CatBoostError
    • catBoostModelPredictTransposed

      final void catBoostModelPredictTransposed(long handle, @Nonnull float[][] numericFeatures, @Nonnull double[] predictions) throws CatBoostError
      Throws:
      CatBoostError