Package ai.catboost
Class CatBoostJNI
java.lang.Object
ai.catboost.CatBoostJNI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final voidcatBoostFreeModel(long handle) (package private) final voidcatBoostHashCatFeature(String catFeature, int[] hash) (package private) final voidcatBoostHashCatFeatures(String[] catFeatures, int[] hashes) (package private) final voidcatBoostLoadModelFromArray(byte[] data, long[] handle, String formatName) (package private) final voidcatBoostLoadModelFromFile(String fname, long[] handle, String formatName) (package private) final voidcatBoostModelGetCatFeatures(long handle, String[][] names, int[][] flat_feature_index, int[][] feature_index) (package private) final voidcatBoostModelGetEmbeddingFeatures(long handle, String[][] names, int[][] flat_feature_index, int[][] feature_index) (package private) final voidcatBoostModelGetEvaluatorType(long handle, String[] evaluatorType) (package private) final voidcatBoostModelGetFlatFeatureVectorExpectedSize(long handle, int[] featureVectorExpectedSize) (package private) final voidcatBoostModelGetFloatFeatures(long handle, String[][] names, int[][] flat_feature_index, int[][] feature_index, int[][] has_nans, String[][] nan_value_treatment) (package private) final voidcatBoostModelGetMetadata(long handle, String[][] keys, String[][] values) (package private) final voidcatBoostModelGetPredictionDimension(long handle, int[] classesCount) (package private) final voidcatBoostModelGetSupportedEvaluatorTypes(long handle, String[][] evaluatorTypes) (package private) final voidcatBoostModelGetTextFeatures(long handle, String[][] names, int[][] flat_feature_index, int[][] feature_index) (package private) final voidcatBoostModelGetTreeCount(long handle, int[] treeCount) (package private) final voidcatBoostModelGetUsedCategoricalFeatureCount(long handle, int[] catFeatureCount) (package private) final voidcatBoostModelGetUsedEmbeddingFeatureCount(long handle, int[] embeddingFeatureCount) (package private) final voidcatBoostModelGetUsedFeatureIndices(long handle, int[][] featureIndices) (package private) final voidcatBoostModelGetUsedNumericFeatureCount(long handle, int[] numericFeatureCount) (package private) final voidcatBoostModelGetUsedTextFeatureCount(long handle, int[] textFeatureCount) (package private) final voidcatBoostModelPredict(long handle, float[][] numericFeatures, int[][] catFeatureHashes, String[][] textFeatures, float[][][] embeddingFeatures, double[] predictions) (package private) final voidcatBoostModelPredict(long handle, float[][] numericFeatures, String[][] catFeatures, String[][] textFeatures, float[][][] embeddingFeatures, double[] predictions) (package private) final voidcatBoostModelPredict(long handle, float[] numericFeatures, int[] catFeatureHashes, String[] textFeatures, float[][] embeddingFeatures, double[] predictions) (package private) final voidcatBoostModelPredict(long handle, float[] numericFeatures, String[] catFeatures, String[] textFeatures, float[][] embeddingFeatures, double[] predictions) (package private) final voidcatBoostModelPredictTransposed(long handle, float[][] numericFeatures, double[] predictions) (package private) final voidcatBoostModelSetEvaluatorType(long handle, String evaluatorType)
-
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
- 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
- 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
-