com.microsoft.ml.lightgbm.lightgbmlibJNI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lightgbm4j Show documentation
Show all versions of lightgbm4j Show documentation
A high-level wrapper for LightGBM toolkit
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.microsoft.ml.lightgbm;
public class lightgbmlibJNI {
public final static native int C_API_DTYPE_FLOAT32_get();
public final static native int C_API_DTYPE_FLOAT64_get();
public final static native int C_API_DTYPE_INT32_get();
public final static native int C_API_DTYPE_INT64_get();
public final static native int C_API_PREDICT_NORMAL_get();
public final static native int C_API_PREDICT_RAW_SCORE_get();
public final static native int C_API_PREDICT_LEAF_INDEX_get();
public final static native int C_API_PREDICT_CONTRIB_get();
public final static native int C_API_MATRIX_TYPE_CSR_get();
public final static native int C_API_MATRIX_TYPE_CSC_get();
public final static native int C_API_FEATURE_IMPORTANCE_SPLIT_get();
public final static native int C_API_FEATURE_IMPORTANCE_GAIN_get();
public final static native String LGBM_GetLastError();
public final static native int LGBM_RegisterLogCallback(long jarg1);
public final static native int LGBM_GetSampleCount(int jarg1, String jarg2, long jarg3);
public final static native int LGBM_SampleIndices(int jarg1, String jarg2, long jarg3, long jarg4);
public final static native int LGBM_DatasetCreateFromFile(String jarg1, String jarg2, long jarg3, long jarg4);
public final static native int LGBM_DatasetCreateFromSampledColumn(long jarg1, long jarg2, int jarg3, long jarg4, int jarg5, int jarg6, String jarg7, long jarg8);
public final static native int LGBM_DatasetCreateByReference(long jarg1, long jarg2, long jarg3);
public final static native int LGBM_DatasetPushRows(long jarg1, long jarg2, int jarg3, int jarg4, int jarg5, int jarg6);
public final static native int LGBM_DatasetPushRowsByCSR(long jarg1, long jarg2, int jarg3, long jarg4, long jarg5, int jarg6, long jarg7, long jarg8, long jarg9, long jarg10);
public final static native int LGBM_DatasetCreateFromCSR(long jarg1, int jarg2, long jarg3, long jarg4, int jarg5, long jarg6, long jarg7, long jarg8, String jarg9, long jarg10, long jarg11);
public final static native int LGBM_DatasetCreateFromCSRFunc(long jarg1, int jarg2, long jarg3, String jarg4, long jarg5, long jarg6);
public final static native int LGBM_DatasetCreateFromCSC(long jarg1, int jarg2, long jarg3, long jarg4, int jarg5, long jarg6, long jarg7, long jarg8, String jarg9, long jarg10, long jarg11);
public final static native int LGBM_DatasetCreateFromMat(long jarg1, int jarg2, int jarg3, int jarg4, int jarg5, String jarg6, long jarg7, long jarg8);
public final static native int LGBM_DatasetCreateFromMats(int jarg1, long jarg2, int jarg3, long jarg4, int jarg5, int jarg6, String jarg7, long jarg8, long jarg9);
public final static native int LGBM_DatasetGetSubset(long jarg1, long jarg2, int jarg3, String jarg4, long jarg5);
public final static native int LGBM_DatasetSetFeatureNames(long jarg1, String[] jarg2, int jarg3);
public final static native int LGBM_DatasetGetFeatureNames(long jarg1, int jarg2, long jarg3, long jarg4, long jarg5, String[] jarg6);
public final static native int LGBM_DatasetFree(long jarg1);
public final static native int LGBM_DatasetSaveBinary(long jarg1, String jarg2);
public final static native int LGBM_DatasetDumpText(long jarg1, String jarg2);
public final static native int LGBM_DatasetSetField(long jarg1, String jarg2, long jarg3, int jarg4, int jarg5);
public final static native int LGBM_DatasetGetField(long jarg1, String jarg2, long jarg3, long jarg4, long jarg5);
public final static native int LGBM_DatasetUpdateParamChecking(String jarg1, String jarg2);
public final static native int LGBM_DatasetGetNumData(long jarg1, long jarg2);
public final static native int LGBM_DatasetGetNumFeature(long jarg1, long jarg2);
public final static native int LGBM_DatasetAddFeaturesFrom(long jarg1, long jarg2);
public final static native int LGBM_BoosterGetLinear(long jarg1, long jarg2);
public final static native int LGBM_BoosterCreate(long jarg1, String jarg2, long jarg3);
public final static native int LGBM_BoosterCreateFromModelfile(String jarg1, long jarg2, long jarg3);
public final static native int LGBM_BoosterLoadModelFromString(String jarg1, long jarg2, long jarg3);
public final static native int LGBM_BoosterFree(long jarg1);
public final static native int LGBM_BoosterShuffleModels(long jarg1, int jarg2, int jarg3);
public final static native int LGBM_BoosterMerge(long jarg1, long jarg2);
public final static native int LGBM_BoosterAddValidData(long jarg1, long jarg2);
public final static native int LGBM_BoosterResetTrainingData(long jarg1, long jarg2);
public final static native int LGBM_BoosterResetParameter(long jarg1, String jarg2);
public final static native int LGBM_BoosterGetNumClasses(long jarg1, long jarg2);
public final static native int LGBM_BoosterUpdateOneIter(long jarg1, long jarg2);
public final static native int LGBM_BoosterRefit(long jarg1, long jarg2, int jarg3, int jarg4);
public final static native int LGBM_BoosterUpdateOneIterCustom(long jarg1, long jarg2, long jarg3, long jarg4);
public final static native int LGBM_BoosterRollbackOneIter(long jarg1);
public final static native int LGBM_BoosterGetCurrentIteration(long jarg1, long jarg2);
public final static native int LGBM_BoosterNumModelPerIteration(long jarg1, long jarg2);
public final static native int LGBM_BoosterNumberOfTotalModel(long jarg1, long jarg2);
public final static native int LGBM_BoosterGetEvalCounts(long jarg1, long jarg2);
public final static native int LGBM_BoosterGetNumFeature(long jarg1, long jarg2);
public final static native int LGBM_BoosterGetEval(long jarg1, int jarg2, long jarg3, long jarg4);
public final static native int LGBM_BoosterGetNumPredict(long jarg1, int jarg2, long jarg3);
public final static native int LGBM_BoosterGetPredict(long jarg1, int jarg2, long jarg3, long jarg4);
public final static native int LGBM_BoosterPredictForFile(long jarg1, String jarg2, int jarg3, int jarg4, int jarg5, int jarg6, String jarg7, String jarg8);
public final static native int LGBM_BoosterCalcNumPredict(long jarg1, int jarg2, int jarg3, int jarg4, int jarg5, long jarg6);
public final static native int LGBM_FastConfigFree(long jarg1);
public final static native int LGBM_BoosterPredictForCSR(long jarg1, long jarg2, int jarg3, long jarg4, long jarg5, int jarg6, long jarg7, long jarg8, long jarg9, int jarg10, int jarg11, int jarg12, String jarg13, long jarg14, long jarg15);
public final static native int LGBM_BoosterPredictSparseOutput(long jarg1, long jarg2, int jarg3, long jarg4, long jarg5, int jarg6, long jarg7, long jarg8, long jarg9, int jarg10, int jarg11, int jarg12, String jarg13, int jarg14, long jarg15, long jarg16, long jarg17, long jarg18);
public final static native int LGBM_BoosterFreePredictSparse(long jarg1, long jarg2, long jarg3, int jarg4, int jarg5);
public final static native int LGBM_BoosterPredictForCSRSingleRow(long jarg1, long jarg2, int jarg3, long jarg4, long jarg5, int jarg6, long jarg7, long jarg8, long jarg9, int jarg10, int jarg11, int jarg12, String jarg13, long jarg14, long jarg15);
public final static native int LGBM_BoosterPredictForCSRSingleRowFastInit(long jarg1, int jarg2, int jarg3, int jarg4, int jarg5, long jarg6, String jarg7, long jarg8);
public final static native int LGBM_BoosterPredictForCSRSingleRowFast(long jarg1, long jarg2, int jarg3, long jarg4, long jarg5, long jarg6, long jarg7, long jarg8, long jarg9);
public final static native int LGBM_BoosterPredictForCSC(long jarg1, long jarg2, int jarg3, long jarg4, long jarg5, int jarg6, long jarg7, long jarg8, long jarg9, int jarg10, int jarg11, int jarg12, String jarg13, long jarg14, long jarg15);
public final static native int LGBM_BoosterPredictForMat(long jarg1, long jarg2, int jarg3, int jarg4, int jarg5, int jarg6, int jarg7, int jarg8, int jarg9, String jarg10, long jarg11, long jarg12);
public final static native int LGBM_BoosterPredictForMatSingleRow(long jarg1, long jarg2, int jarg3, int jarg4, int jarg5, int jarg6, int jarg7, int jarg8, String jarg9, long jarg10, long jarg11);
public final static native int LGBM_BoosterPredictForMatSingleRowFastInit(long jarg1, int jarg2, int jarg3, int jarg4, int jarg5, int jarg6, String jarg7, long jarg8);
public final static native int LGBM_BoosterPredictForMatSingleRowFast(long jarg1, long jarg2, long jarg3, long jarg4);
public final static native int LGBM_BoosterPredictForMats(long jarg1, long jarg2, int jarg3, int jarg4, int jarg5, int jarg6, int jarg7, int jarg8, String jarg9, long jarg10, long jarg11);
public final static native int LGBM_BoosterSaveModel(long jarg1, int jarg2, int jarg3, int jarg4, String jarg5);
public final static native int LGBM_BoosterDumpModel(long jarg1, int jarg2, int jarg3, int jarg4, long jarg5, long jarg6, String jarg7);
public final static native int LGBM_BoosterGetLeafValue(long jarg1, int jarg2, int jarg3, long jarg4);
public final static native int LGBM_BoosterSetLeafValue(long jarg1, int jarg2, int jarg3, double jarg4);
public final static native int LGBM_BoosterFeatureImportance(long jarg1, int jarg2, int jarg3, long jarg4);
public final static native int LGBM_BoosterGetUpperBoundValue(long jarg1, long jarg2);
public final static native int LGBM_BoosterGetLowerBoundValue(long jarg1, long jarg2);
public final static native int LGBM_NetworkInit(String jarg1, int jarg2, int jarg3, int jarg4);
public final static native int LGBM_NetworkFree();
public final static native int LGBM_NetworkInitWithFunctions(int jarg1, int jarg2, long jarg3, long jarg4);
public final static native String LastErrorMsg();
public final static native void LGBM_SetLastError(String jarg1);
public final static native String LGBM_BoosterSaveModelToStringSWIG(long jarg1, int jarg2, int jarg3, int jarg4, long jarg5, long jarg6);
public final static native String LGBM_BoosterDumpModelSWIG(long jarg1, int jarg2, int jarg3, int jarg4, long jarg5, long jarg6);
public final static native int LGBM_BoosterPredictForMatSingle(double[] jarg2, long jarg3, int jarg4, int jarg5, int jarg6, int jarg7, int jarg8, int jarg9, String jarg10, long jarg11, long jarg12);
public final static native int LGBM_BoosterPredictForMatSingleRowFastCriticalSWIG(double[] jarg2, long jarg3, long jarg4, long jarg5);
public final static native int LGBM_BoosterPredictForCSRSingle(int[] jarg2, double[] jarg3, int jarg4, long jarg5, int jarg6, int jarg7, long jarg8, long jarg9, int jarg10, int jarg11, int jarg12, String jarg13, long jarg14, long jarg15);
public final static native int LGBM_BoosterPredictForCSRSingleRowFastCriticalSWIG(int[] jarg2, double[] jarg3, int jarg4, long jarg5, int jarg6, long jarg7, long jarg8, long jarg9);
public final static native void CSRDirect_indices_set(long jarg1, CSRDirect jarg1_, int[] jarg2);
public final static native int[] CSRDirect_indices_get(long jarg1, CSRDirect jarg1_);
public final static native void CSRDirect_values_set(long jarg1, CSRDirect jarg1_, double[] jarg2);
public final static native double[] CSRDirect_values_get(long jarg1, CSRDirect jarg1_);
public final static native void CSRDirect_indices0_set(long jarg1, CSRDirect jarg1_, long jarg2);
public final static native long CSRDirect_indices0_get(long jarg1, CSRDirect jarg1_);
public final static native void CSRDirect_values0_set(long jarg1, CSRDirect jarg1_, long jarg2);
public final static native long CSRDirect_values0_get(long jarg1, CSRDirect jarg1_);
public final static native void CSRDirect_size_set(long jarg1, CSRDirect jarg1_, int jarg2);
public final static native int CSRDirect_size_get(long jarg1, CSRDirect jarg1_);
public final static native long new_CSRDirect();
public final static native void delete_CSRDirect(long jarg1);
public final static native int LGBM_DatasetCreateFromCSRSpark(java.lang.Object[] jarg2, int jarg3, long jarg4, String jarg5, long jarg6, long jarg7);
public final static native long new_intp();
public final static native long copy_intp(int jarg1);
public final static native void delete_intp(long jarg1);
public final static native void intp_assign(long jarg1, int jarg2);
public final static native int intp_value(long jarg1);
public final static native long new_longp();
public final static native long copy_longp(int jarg1);
public final static native void delete_longp(long jarg1);
public final static native void longp_assign(long jarg1, int jarg2);
public final static native int longp_value(long jarg1);
public final static native long new_doublep();
public final static native long copy_doublep(double jarg1);
public final static native void delete_doublep(long jarg1);
public final static native void doublep_assign(long jarg1, double jarg2);
public final static native double doublep_value(long jarg1);
public final static native long new_floatp();
public final static native long copy_floatp(float jarg1);
public final static native void delete_floatp(long jarg1);
public final static native void floatp_assign(long jarg1, float jarg2);
public final static native float floatp_value(long jarg1);
public final static native long new_int64_tp();
public final static native long copy_int64_tp(long jarg1);
public final static native void delete_int64_tp(long jarg1);
public final static native void int64_tp_assign(long jarg1, long jarg2);
public final static native long int64_tp_value(long jarg1);
public final static native long new_int32_tp();
public final static native long copy_int32_tp(int jarg1);
public final static native void delete_int32_tp(long jarg1);
public final static native void int32_tp_assign(long jarg1, int jarg2);
public final static native int int32_tp_value(long jarg1);
public final static native long new_size_tp();
public final static native long copy_size_tp(long jarg1);
public final static native void delete_size_tp(long jarg1);
public final static native void size_tp_assign(long jarg1, long jarg2);
public final static native long size_tp_value(long jarg1);
public final static native long int64_t_to_long_ptr(long jarg1);
public final static native long int64_t_to_double_ptr(long jarg1);
public final static native long int32_t_to_int_ptr(long jarg1);
public final static native long long_to_int64_t_ptr(long jarg1);
public final static native long double_to_int64_t_ptr(long jarg1);
public final static native long int_to_int32_t_ptr(long jarg1);
public final static native long double_to_voidp_ptr(long jarg1);
public final static native long float_to_voidp_ptr(long jarg1);
public final static native long int_to_voidp_ptr(long jarg1);
public final static native long int32_t_to_voidp_ptr(long jarg1);
public final static native long int64_t_to_voidp_ptr(long jarg1);
public final static native long new_doubleArray(long jarg1);
public final static native void delete_doubleArray(long jarg1);
public final static native double doubleArray_getitem(long jarg1, long jarg2);
public final static native void doubleArray_setitem(long jarg1, long jarg2, double jarg3);
public final static native long new_floatArray(long jarg1);
public final static native void delete_floatArray(long jarg1);
public final static native float floatArray_getitem(long jarg1, long jarg2);
public final static native void floatArray_setitem(long jarg1, long jarg2, float jarg3);
public final static native long new_intArray(long jarg1);
public final static native void delete_intArray(long jarg1);
public final static native int intArray_getitem(long jarg1, long jarg2);
public final static native void intArray_setitem(long jarg1, long jarg2, int jarg3);
public final static native long new_longArray(long jarg1);
public final static native void delete_longArray(long jarg1);
public final static native int longArray_getitem(long jarg1, long jarg2);
public final static native void longArray_setitem(long jarg1, long jarg2, int jarg3);
public final static native long new_voidpp();
public final static native void delete_voidpp(long jarg1);
public final static native long voidpp_value(long jarg1);
public final static native long voidpp_handle();
public final static native long StringArrayHandle_create(long jarg1, long jarg2);
public final static native void StringArrayHandle_free(long jarg1);
public final static native String[] StringArrayHandle_get_strings(long jarg1);
public final static native String StringArrayHandle_get_string(long jarg1, int jarg2);
public final static native int StringArrayHandle_set_string(long jarg1, long jarg2, String jarg3);
public final static native long StringArrayHandle_get_num_elements(long jarg1);
public final static native long LGBM_BoosterGetEvalNamesSWIG(long jarg1);
public final static native long LGBM_BoosterGetFeatureNamesSWIG(long jarg1);
public final static native long LGBM_DatasetGetFeatureNamesSWIG(long jarg1);
public final static native long new_int32ChunkedArray(long jarg1);
public final static native void delete_int32ChunkedArray(long jarg1);
public final static native void int32ChunkedArray_add(long jarg1, int32ChunkedArray jarg1_, int jarg2);
public final static native long int32ChunkedArray_get_add_count(long jarg1, int32ChunkedArray jarg1_);
public final static native long int32ChunkedArray_get_chunks_count(long jarg1, int32ChunkedArray jarg1_);
public final static native long int32ChunkedArray_get_last_chunk_add_count(long jarg1, int32ChunkedArray jarg1_);
public final static native long int32ChunkedArray_get_chunk_size(long jarg1, int32ChunkedArray jarg1_);
public final static native long int32ChunkedArray_data(long jarg1, int32ChunkedArray jarg1_);
public final static native long int32ChunkedArray_data_as_void(long jarg1, int32ChunkedArray jarg1_);
public final static native void int32ChunkedArray_coalesce_to__SWIG_0(long jarg1, int32ChunkedArray jarg1_, long jarg2, boolean jarg3);
public final static native void int32ChunkedArray_coalesce_to__SWIG_1(long jarg1, int32ChunkedArray jarg1_, long jarg2);
public final static native int int32ChunkedArray_getitem(long jarg1, int32ChunkedArray jarg1_, long jarg2, long jarg3, int jarg4);
public final static native int int32ChunkedArray_setitem(long jarg1, int32ChunkedArray jarg1_, long jarg2, long jarg3, int jarg4);
public final static native void int32ChunkedArray_clear(long jarg1, int32ChunkedArray jarg1_);
public final static native void int32ChunkedArray_release(long jarg1, int32ChunkedArray jarg1_);
public final static native boolean int32ChunkedArray_within_bounds(long jarg1, int32ChunkedArray jarg1_, long jarg2, long jarg3);
public final static native void int32ChunkedArray_new_chunk(long jarg1, int32ChunkedArray jarg1_);
public final static native long new_floatChunkedArray(long jarg1);
public final static native void delete_floatChunkedArray(long jarg1);
public final static native void floatChunkedArray_add(long jarg1, floatChunkedArray jarg1_, float jarg2);
public final static native long floatChunkedArray_get_add_count(long jarg1, floatChunkedArray jarg1_);
public final static native long floatChunkedArray_get_chunks_count(long jarg1, floatChunkedArray jarg1_);
public final static native long floatChunkedArray_get_last_chunk_add_count(long jarg1, floatChunkedArray jarg1_);
public final static native long floatChunkedArray_get_chunk_size(long jarg1, floatChunkedArray jarg1_);
public final static native long floatChunkedArray_data(long jarg1, floatChunkedArray jarg1_);
public final static native long floatChunkedArray_data_as_void(long jarg1, floatChunkedArray jarg1_);
public final static native void floatChunkedArray_coalesce_to__SWIG_0(long jarg1, floatChunkedArray jarg1_, long jarg2, boolean jarg3);
public final static native void floatChunkedArray_coalesce_to__SWIG_1(long jarg1, floatChunkedArray jarg1_, long jarg2);
public final static native float floatChunkedArray_getitem(long jarg1, floatChunkedArray jarg1_, long jarg2, long jarg3, float jarg4);
public final static native int floatChunkedArray_setitem(long jarg1, floatChunkedArray jarg1_, long jarg2, long jarg3, float jarg4);
public final static native void floatChunkedArray_clear(long jarg1, floatChunkedArray jarg1_);
public final static native void floatChunkedArray_release(long jarg1, floatChunkedArray jarg1_);
public final static native boolean floatChunkedArray_within_bounds(long jarg1, floatChunkedArray jarg1_, long jarg2, long jarg3);
public final static native void floatChunkedArray_new_chunk(long jarg1, floatChunkedArray jarg1_);
public final static native long new_doubleChunkedArray(long jarg1);
public final static native void delete_doubleChunkedArray(long jarg1);
public final static native void doubleChunkedArray_add(long jarg1, doubleChunkedArray jarg1_, double jarg2);
public final static native long doubleChunkedArray_get_add_count(long jarg1, doubleChunkedArray jarg1_);
public final static native long doubleChunkedArray_get_chunks_count(long jarg1, doubleChunkedArray jarg1_);
public final static native long doubleChunkedArray_get_last_chunk_add_count(long jarg1, doubleChunkedArray jarg1_);
public final static native long doubleChunkedArray_get_chunk_size(long jarg1, doubleChunkedArray jarg1_);
public final static native long doubleChunkedArray_data(long jarg1, doubleChunkedArray jarg1_);
public final static native long doubleChunkedArray_data_as_void(long jarg1, doubleChunkedArray jarg1_);
public final static native void doubleChunkedArray_coalesce_to__SWIG_0(long jarg1, doubleChunkedArray jarg1_, long jarg2, boolean jarg3);
public final static native void doubleChunkedArray_coalesce_to__SWIG_1(long jarg1, doubleChunkedArray jarg1_, long jarg2);
public final static native double doubleChunkedArray_getitem(long jarg1, doubleChunkedArray jarg1_, long jarg2, long jarg3, double jarg4);
public final static native int doubleChunkedArray_setitem(long jarg1, doubleChunkedArray jarg1_, long jarg2, long jarg3, double jarg4);
public final static native void doubleChunkedArray_clear(long jarg1, doubleChunkedArray jarg1_);
public final static native void doubleChunkedArray_release(long jarg1, doubleChunkedArray jarg1_);
public final static native boolean doubleChunkedArray_within_bounds(long jarg1, doubleChunkedArray jarg1_, long jarg2, long jarg3);
public final static native void doubleChunkedArray_new_chunk(long jarg1, doubleChunkedArray jarg1_);
}