Crate xgboostrs_sys

Crate xgboostrs_sys 

Source

Structs§

XGBoostBatchCSR
\brief Mini batch used in XGBoost Data Iteration
_G_fpos64_t
_G_fpos_t
_IO_FILE
_IO_codecvt
_IO_cookie_io_functions_t
_IO_marker
_IO_wide_data
__fsid_t
__mbstate_t
__va_list_tag
obstack

Constants§

BUFSIZ
EOF
FILENAME_MAX
FOPEN_MAX
INT8_MAX
INT8_MIN
INT8_WIDTH
INT16_MAX
INT16_MIN
INT16_WIDTH
INT32_MAX
INT32_MIN
INT32_WIDTH
INT64_WIDTH
INTMAX_WIDTH
INTPTR_MAX
INTPTR_MIN
INTPTR_WIDTH
INT_FAST8_MAX
INT_FAST8_MIN
INT_FAST8_WIDTH
INT_FAST16_MAX
INT_FAST16_MIN
INT_FAST16_WIDTH
INT_FAST32_MAX
INT_FAST32_MIN
INT_FAST32_WIDTH
INT_FAST64_WIDTH
INT_LEAST8_MAX
INT_LEAST8_MIN
INT_LEAST8_WIDTH
INT_LEAST16_MAX
INT_LEAST16_MIN
INT_LEAST16_WIDTH
INT_LEAST32_MAX
INT_LEAST32_MIN
INT_LEAST32_WIDTH
INT_LEAST64_WIDTH
L_ctermid
L_cuserid
L_tmpnam
PTRDIFF_MAX
PTRDIFF_MIN
PTRDIFF_WIDTH
P_tmpdir
RENAME_EXCHANGE
RENAME_NOREPLACE
RENAME_WHITEOUT
SEEK_CUR
SEEK_DATA
SEEK_END
SEEK_HOLE
SEEK_SET
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIG_ATOMIC_WIDTH
SIZE_MAX
SIZE_WIDTH
TMP_MAX
UINT8_MAX
UINT8_WIDTH
UINT16_MAX
UINT16_WIDTH
UINT32_MAX
UINT32_WIDTH
UINT64_WIDTH
UINTMAX_WIDTH
UINTPTR_MAX
UINTPTR_WIDTH
UINT_FAST8_MAX
UINT_FAST8_WIDTH
UINT_FAST16_MAX
UINT_FAST16_WIDTH
UINT_FAST32_MAX
UINT_FAST32_WIDTH
UINT_FAST64_WIDTH
UINT_LEAST8_MAX
UINT_LEAST8_WIDTH
UINT_LEAST16_MAX
UINT_LEAST16_WIDTH
UINT_LEAST32_MAX
UINT_LEAST32_WIDTH
UINT_LEAST64_WIDTH
WCHAR_WIDTH
WINT_MAX
WINT_MIN
WINT_WIDTH
_ATFILE_SOURCE
_BITS_STDINT_INTN_H
_BITS_STDINT_LEAST_H
_BITS_STDINT_UINTN_H
_BITS_STDIO_LIM_H
_BITS_TIME64_H
_BITS_TYPESIZES_H
_BITS_TYPES_H
_BITS_WCHAR_H
_DEFAULT_SOURCE
_DYNAMIC_STACK_SIZE_SOURCE
_FEATURES_H
_GLIBCXX11_USE_C99_COMPLEX
_GLIBCXX11_USE_C99_MATH
_GLIBCXX11_USE_C99_STDIO
_GLIBCXX11_USE_C99_STDLIB
_GLIBCXX11_USE_C99_WCHAR
_GLIBCXX98_USE_C99_COMPLEX
_GLIBCXX98_USE_C99_MATH
_GLIBCXX98_USE_C99_STDIO
_GLIBCXX98_USE_C99_STDLIB
_GLIBCXX98_USE_C99_WCHAR
_GLIBCXX_ATOMIC_BUILTINS
_GLIBCXX_CAN_ALIGNAS_DESTRUCTIVE_SIZE
_GLIBCXX_CPU_DEFINES
_GLIBCXX_CSTDINT
_GLIBCXX_CSTDIO
_GLIBCXX_CXX_CONFIG_H
_GLIBCXX_DARWIN_USE_64_BIT_INODE
_GLIBCXX_DOUBLE_IS_IEEE_BINARY64
_GLIBCXX_EXTERN_TEMPLATE
_GLIBCXX_FAST_MATH
_GLIBCXX_FLOAT_IS_IEEE_BINARY32
_GLIBCXX_FULLY_DYNAMIC_STRING
_GLIBCXX_GTHREAD_USE_WEAK
_GLIBCXX_HAS_GTHREADS
_GLIBCXX_HAVE_ACOSF
_GLIBCXX_HAVE_ACOSL
_GLIBCXX_HAVE_ALIGNED_ALLOC
_GLIBCXX_HAVE_ARC4RANDOM
_GLIBCXX_HAVE_ARPA_INET_H
_GLIBCXX_HAVE_ASINF
_GLIBCXX_HAVE_ASIN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_CTYPE
_GLIBCXX_USE_C99_CTYPE_TR1
_GLIBCXX_USE_C99_FENV
_GLIBCXX_USE_C99_FENV_TR1
_GLIBCXX_USE_C99_INTTYPES
_GLIBCXX_USE_C99_INTTYPES_TR1
_GLIBCXX_USE_C99_INTTYPES_WCHAR_T
_GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1
_GLIBCXX_USE_C99_MATH_FUNCS
_GLIBCXX_USE_C99_MATH_TR1
_GLIBCXX_USE_C99_STDINT
_GLIBCXX_USE_C99_STDINT_TR1
_GLIBCXX_USE_CHDIR
_GLIBCXX_USE_CHMOD
_GLIBCXX_USE_CLOCK_MONOTONIC
_GLIBCXX_USE_CLOCK_REALTIME
_GLIBCXX_USE_CXX11_ABI
_GLIBCXX_USE_DECIMAL_FLOAT
_GLIBCXX_USE_DEPRECATED
_GLIBCXX_USE_DEV_RANDOM
_GLIBCXX_USE_DUAL_ABI
_GLIBCXX_USE_FCHMOD
_GLIBCXX_USE_FCHMODAT
_GLIBCXX_USE_FLOAT128
_GLIBCXX_USE_FSEEKO_FTELLO
_GLIBCXX_USE_GETCWD
_GLIBCXX_USE_GETTIMEOFDAY
_GLIBCXX_USE_GET_NPROCS
_GLIBCXX_USE_INIT_PRIORITY_ATTRIBUTE
_GLIBCXX_USE_LFS
_GLIBCXX_USE_LONG_LONG
_GLIBCXX_USE_LSTAT
_GLIBCXX_USE_MKDIR
_GLIBCXX_USE_NANOSLEEP
_GLIBCXX_USE_NLS
_GLIBCXX_USE_NL_LANGINFO_L
_GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT
_GLIBCXX_USE_PTHREAD_RWLOCK_CLOCKLOCK
_GLIBCXX_USE_PTHREAD_RWLOCK_T
_GLIBCXX_USE_RANDOM_TR1
_GLIBCXX_USE_REALPATH
_GLIBCXX_USE_SCHED_YIELD
_GLIBCXX_USE_SC_NPROCESSORS_ONLN
_GLIBCXX_USE_SENDFILE
_GLIBCXX_USE_ST_MTIM
_GLIBCXX_USE_TMPNAM
_GLIBCXX_USE_UCHAR_C8RTOMB_MBRTOC8_CXX20
_GLIBCXX_USE_UCHAR_C8RTOMB_MBRTOC8_FCHAR8_T
_GLIBCXX_USE_UTIME
_GLIBCXX_USE_UTIMENSAT
_GLIBCXX_USE_WCHAR_T
_GLIBCXX_VERBOSE
_GLIBCXX_VERBOSE_ASSERT
_GLIBCXX_X86_RDRAND
_GLIBCXX_X86_RDSEED
_GLIBCXX_ZONEINFO_DIR
_GTHREAD_USE_MUTEX_TIMEDLOCK
_IOFBF
_IOLBF
_IONBF
_IO_EOF_SEEN
_IO_ERR_SEEN
_IO_USER_LOCK
_ISOC2X_SOURCE
_ISOC11_SOURCE
_ISOC95_SOURCE
_ISOC99_SOURCE
_LARGEFILE64_SOURCE
_LARGEFILE_SOURCE
_POSIX_C_SOURCE
_POSIX_SOURCE
_PRINTF_NAN_LEN_MAX
_STDC_PREDEF_H
_STDINT_H
_STDIO_H
_SYS_CDEFS_H
_XOPEN_SOURCE
_XOPEN_SOURCE_EXTENDED
__FD_SETSIZE
__FILE_defined
__GLIBCXX__
__GLIBC_MINOR__
__GLIBC_USE_C2X_STRTOL
__GLIBC_USE_DEPRECATED_GETS
__GLIBC_USE_DEPRECATED_SCANF
__GLIBC_USE_IEC_60559_BFP_EXT
__GLIBC_USE_IEC_60559_BFP_EXT_C2X
__GLIBC_USE_IEC_60559_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X
__GLIBC_USE_IEC_60559_TYPES_EXT
__GLIBC_USE_ISOC2X
__GLIBC_USE_LIB_EXT2
__GLIBC__
__GNU_LIBRARY__
__HAVE_DISTINCT_FLOAT16
__HAVE_DISTINCT_FLOAT32
__HAVE_DISTINCT_FLOAT64
__HAVE_DISTINCT_FLOAT32X
__HAVE_DISTINCT_FLOAT64X
__HAVE_DISTINCT_FLOAT128
__HAVE_DISTINCT_FLOAT128X
__HAVE_FLOAT16
__HAVE_FLOAT32
__HAVE_FLOAT64
__HAVE_FLOAT32X
__HAVE_FLOAT64X
__HAVE_FLOAT64X_LONG_DOUBLE
__HAVE_FLOAT128
__HAVE_FLOAT128X
__HAVE_FLOATN_NOT_TYPEDEF
__HAVE_GENERIC_SELECTION
__INO_T_MATCHES_INO64_T
__KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64
__LDOUBLE_REDIRECTS_TO_FLOAT128_ABI
__NO_CTYPE
__OFF_T_MATCHES_OFF64_T
__RLIM_T_MATCHES_RLIM64_T
__STATFS_MATCHES_STATFS64
__STDC_IEC_559_COMPLEX__
__STDC_IEC_559__
__STDC_IEC_60559_BFP__
__STDC_IEC_60559_COMPLEX__
__STDC_ISO_10646__
__SYSCALL_WORDSIZE
__TIMESIZE
__USE_ATFILE
__USE_DYNAMIC_STACK_SIZE
__USE_FORTIFY_LEVEL
__USE_GNU
__USE_ISOC11
__USE_ISOC95
__USE_ISOC99
__USE_ISOCXX11
__USE_LARGEFILE
__USE_LARGEFILE64
__USE_MISC
__USE_POSIX
__USE_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_UNIX98
__USE_XOPEN
__USE_XOPEN2K
__USE_XOPEN2K8
__USE_XOPEN2K8XSI
__USE_XOPEN2KXSI
__USE_XOPEN_EXTENDED
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32
____FILE_defined
_____fpos64_t_defined
_____fpos_t_defined
____mbstate_t_defined
__cookie_io_functions_t_defined
__glibc_c99_flexarr_available
__struct_FILE_defined

Statics§

stderr
stdin
stdout

Functions§

RabitAllgather
\brief Allgather function, each node have a segment of data in the ring of sendrecvbuf, the data provided by current node k is [slice_begin, slice_end), the next node’s segment must start with slice_end after the call of Allgather, sendrecvbuf_ contains all the contents including all segments use a ring based algorithm
RabitAllreduce
\brief perform in-place allreduce, on sendrecvbuf this function is NOT thread-safe
RabitBroadcast
\brief broadcast an memory region to all others from root
RabitCheckPoint
\brief checkpoint the model, meaning we finished a stage of execution every time we call check point, there is a version number which will increase by one
RabitFinalize
\brief finalize the rabit engine, call this function after you finished all jobs. \return true if rabit is initialized successfully otherwise false
RabitGetProcessorName
\brief get name of processor \param out_name hold output string \param out_len hold length of output string \param max_len maximum buffer length of input
RabitGetRank
\brief get rank of current process \return rank number of worker
RabitGetRingPrevRank
\brief get rank of previous process in ring topology \return rank number of worker
RabitGetWorldSize
\brief get total number of process \return total world size
RabitInit
\brief initialize the rabit module, call this once before using anything The additional arguments is not necessary. Usually rabit will detect settings from environment variables. \param argc number of arguments in argv \param argv the array of input arguments \return true if rabit is initialized successfully otherwise false
RabitIsDistributed
\brief get rank of current process \return if rabit is distributed
RabitLinkTag
\brief a Dummy function, used to cause force link of C API into the DLL. \code //force link rabit C API library. static int must_link_rabit_ = RabitLinkTag(); \endcode \return a dummy integer.
RabitLoadCheckPoint
\brief load latest check point \param out_global_model hold output of serialized global_model \param out_global_len the output length of serialized global model \param out_local_model hold output of serialized local_model, can be NULL \param out_local_len the output length of serialized local model, can be NULL
RabitTrackerPrint
\brief print the msg to the tracker, this function can be used to communicate the information of the progress to the user who monitors the tracker \param msg the message to be printed
RabitVersionNumber
\return version number of current stored model, which means how many calls to CheckPoint we made so far \return rabit version number
XGBGetGlobalConfig
\brief Get current global configuration (collection of parameters that apply globally). \param json_str pointer to received returned global configuration, represented as a JSON string. \return 0 for success, -1 for failure
XGBGetLastError
\brief get string message of the last error
XGBRegisterLogCallback
\brief register callback function for LOG(INFO) messages – helpful messages that are not errors. Note: this function can be called by multiple threads. The callback function will run on the thread that registered it \return 0 for success, -1 for failure
XGBSetGlobalConfig
\brief Set global configuration (collection of parameters that apply globally). This function accepts the list of key-value pairs representing the global-scope parameters to be configured. The list of key-value pairs are passed in as a JSON string. \param json_str a JSON string representing the list of key-value pairs. The JSON object shall be flat: no value can be a JSON object or an array. \return 0 for success, -1 for failure
XGBoostVersion
\brief Return the version of the XGBoost library being currently used.
XGBoosterBoostOneIter
\brief update the model, by directly specify gradient and second order gradient, this can be used to replace UpdateOneIter, to support customized loss function \param handle handle \param dtrain training data \param grad gradient statistics \param hess second order gradient statistics \param len length of grad/hess array \return 0 when success, -1 when failure happens
XGBoosterBoostedRounds
\brief Get number of boosted rounds from gradient booster. When process_type is update, this number might drop due to removed tree. \param handle Handle to booster. \param out Pointer to output integer. \return 0 when success, -1 when failure happens
XGBoosterCreate
\brief create xgboost learner \param dmats matrices that are set to be cached \param len length of dmats \param out handle to the result booster \return 0 when success, -1 when failure happens
XGBoosterDumpModel
\brief dump model, return array of strings representing model dump \param handle handle \param fmap name to fmap can be empty string \param with_stats whether to dump with statistics \param out_len length of output array \param out_dump_array pointer to hold representing dump of each model \return 0 when success, -1 when failure happens
XGBoosterDumpModelEx
\brief dump model, return array of strings representing model dump \param handle handle \param fmap name to fmap can be empty string \param with_stats whether to dump with statistics \param format the format to dump the model in \param out_len length of output array \param out_dump_array pointer to hold representing dump of each model \return 0 when success, -1 when failure happens
XGBoosterDumpModelExWithFeatures
\brief dump model, return array of strings representing model dump \param handle handle \param fnum number of features \param fname names of features \param ftype types of features \param with_stats whether to dump with statistics \param format the format to dump the model in \param out_len length of output array \param out_models pointer to hold representing dump of each model \return 0 when success, -1 when failure happens
XGBoosterDumpModelWithFeatures
\brief dump model, return array of strings representing model dump \param handle handle \param fnum number of features \param fname names of features \param ftype types of features \param with_stats whether to dump with statistics \param out_len length of output array \param out_models pointer to hold representing dump of each model \return 0 when success, -1 when failure happens
XGBoosterEvalOneIter
\brief get evaluation statistics for xgboost \param handle handle \param iter current iteration rounds \param dmats pointers to data to be evaluated \param evnames pointers to names of each data \param len length of dmats \param out_result the string containing evaluation statistics \return 0 when success, -1 when failure happens
XGBoosterFeatureScore
\brief Calculate feature scores for tree models. When used on linear model, only the weight importance type is defined, and output scores is a row major matrix with shape [n_features, n_classes] for multi-class model. For tree model, out_n_feature is always equal to out_n_scores and has multiple definitions of importance type.
XGBoosterFree
\brief free obj in handle \param handle handle to be freed \return 0 when success, -1 when failure happens
XGBoosterGetAttr
\brief Get string attribute from Booster. \param handle handle \param key The key of the attribute. \param out The result attribute, can be NULL if the attribute do not exist. \param success Whether the result is contained in out. \return 0 when success, -1 when failure happens
XGBoosterGetAttrNames
\brief Get the names of all attribute from Booster. \param handle handle \param out_len the argument to hold the output length \param out pointer to hold the output attribute stings \return 0 when success, -1 when failure happens
XGBoosterGetModelRaw
\brief save model into binary raw bytes, return header of the array user must copy the result out, before next xgboost call \param handle handle \param out_len the argument to hold the output length \param out_dptr the argument to hold the output data pointer \return 0 when success, -1 when failure happens
XGBoosterGetNumFeature
\brief get number of features \param out number of features \return 0 when success, -1 when failure happens
XGBoosterGetStrFeatureInfo
\brief Get string encoded feature info from Booster, similar to feature info in DMatrix.
XGBoosterLoadJsonConfig
\brief Load XGBoost’s internal configuration from a JSON document. Currently the support is experimental, function signature may change in the future without notice.
XGBoosterLoadModel
\brief Load model from existing file \param handle handle \param fname File URI or file name. \return 0 when success, -1 when failure happens
XGBoosterLoadModelFromBuffer
\brief load model from in memory buffer \param handle handle \param buf pointer to the buffer \param len the length of the buffer \return 0 when success, -1 when failure happens
XGBoosterLoadRabitCheckpoint
\brief Initialize the booster from rabit checkpoint. This is used in distributed training API. \param handle handle \param version The output version of the model. \return 0 when success, -1 when failure happens
XGBoosterPredict
\brief make prediction based on dmat (deprecated, use XGBoosterPredictFromDMatrix instead) \param handle handle \param dmat data matrix \param option_mask bit-mask of options taken in prediction, possible values 0:normal prediction 1:output margin instead of transformed value 2:output leaf index of trees instead of leaf value, note leaf index is unique per tree 4:output feature contributions to individual predictions \param ntree_limit limit number of trees used for prediction, this is only valid for boosted trees when the parameter is set to 0, we will use all the trees \param training Whether the prediction function is used as part of a training loop. Prediction can be run in 2 scenarios:
XGBoosterPredictFromCSR
XGBoosterPredictFromCudaArray
XGBoosterPredictFromCudaColumnar
XGBoosterPredictFromDMatrix
\brief Make prediction from DMatrix, replacing XGBoosterPredict.
XGBoosterPredictFromDense
XGBoosterSaveJsonConfig
\brief Save XGBoost’s internal configuration into a JSON document. Currently the support is experimental, function signature may change in the future without notice.
XGBoosterSaveModel
\brief Save model into existing file \param handle handle \param fname File URI or file name. \return 0 when success, -1 when failure happens
XGBoosterSaveRabitCheckpoint
\brief Save the current checkpoint to rabit. \param handle handle \return 0 when success, -1 when failure happens
XGBoosterSerializeToBuffer
\brief Memory snapshot based serialization method. Saves everything states into buffer.
XGBoosterSetAttr
\brief Set or delete string attribute.
XGBoosterSetParam
\brief set parameters \param handle handle \param name parameter name \param value value of parameter \return 0 when success, -1 when failure happens
XGBoosterSetStrFeatureInfo
\brief Set string encoded feature info in Booster, similar to the feature info in DMatrix.
XGBoosterSlice
\brief Slice a model using boosting index. The slice m:n indicates taking all trees that were fit during the boosting rounds m, (m+1), (m+2), …, (n-1).
XGBoosterUnserializeFromBuffer
\brief Memory snapshot based serialization method. Loads the buffer returned from `XGBoosterSerializeToBuffer’.
XGBoosterUpdateOneIter
\brief update the model in one round using dtrain \param handle handle \param iter current iteration rounds \param dtrain training data \return 0 when success, -1 when failure happens
XGDMatrixCreateFromCSCEx
\brief create a matrix content from CSC format \param col_ptr pointer to col headers \param indices findex \param data fvalue \param nindptr number of rows in the matrix + 1 \param nelem number of nonzero elements in the matrix \param num_row number of rows; when it’s set to 0, then guess from data \param out created dmatrix \return 0 when success, -1 when failure happens
XGDMatrixCreateFromCSR
\brief Create a matrix from CSR matrix. \param indptr JSON encoded array_interface to row pointers in CSR. \param indices JSON encoded array_interface to column indices in CSR. \param data JSON encoded array_interface to values in CSR. \param num_col Number of columns. \param json_config JSON encoded configuration. Required values are:
XGDMatrixCreateFromCSREx
\brief create a matrix content from CSR format \param indptr pointer to row headers \param indices findex \param data fvalue \param nindptr number of rows in the matrix + 1 \param nelem number of nonzero elements in the matrix \param num_col number of columns; when it’s set to kAdapterUnknownSize, then guess from data \param out created dmatrix \return 0 when success, -1 when failure happens
XGDMatrixCreateFromCallback
\brief Create an external memory DMatrix with data iterator.
XGDMatrixCreateFromCudaArrayInterface
\brief Create DMatrix from CUDA array. \param data JSON encoded cuda_array_interface for array data. \param json_config JSON encoded configuration. Required values are:
XGDMatrixCreateFromCudaColumnar
\brief Create DMatrix from CUDA columnar format. (cuDF) \param data Array of JSON encoded cuda_array_interface for each column. \param json_config JSON encoded configuration. Required values are:
XGDMatrixCreateFromDT
\brief create matrix content from python data table \param data pointer to pointer to column data \param feature_stypes pointer to strings \param nrow number of rows \param ncol number columns \param out created dmatrix \param nthread number of threads (up to maximum cores available, if <=0 use all cores) \return 0 when success, -1 when failure happens
XGDMatrixCreateFromDataIter
\brief Create a DMatrix from a data iterator. \param data_handle The handle to the data. \param callback The callback to get the data. \param cache_info Additional information about cache file, can be null. \param out The created DMatrix \return 0 when success, -1 when failure happens.
XGDMatrixCreateFromDense
\brief Create a matrix from dense array. \param data JSON encoded array_interface to array values. \param json_config JSON encoded configuration. Required values are:
XGDMatrixCreateFromFile
\brief load a data matrix \param fname the name of the file \param silent whether print messages during loading \param out a loaded data matrix \return 0 when success, -1 when failure happens
XGDMatrixCreateFromMat
\brief create matrix content from dense matrix \param data pointer to the data space \param nrow number of rows \param ncol number columns \param missing which value to represent missing value \param out created dmatrix \return 0 when success, -1 when failure happens
XGDMatrixCreateFromMat_omp
\brief create matrix content from dense matrix \param data pointer to the data space \param nrow number of rows \param ncol number columns \param missing which value to represent missing value \param out created dmatrix \param nthread number of threads (up to maximum cores available, if <=0 use all cores) \return 0 when success, -1 when failure happens
XGDMatrixFree
\brief free space in data matrix \return 0 when success, -1 when failure happens
XGDMatrixGetFloatInfo
\brief get float info vector from matrix. \param handle a instance of data matrix \param field field name \param out_len used to set result length \param out_dptr pointer to the result \return 0 when success, -1 when failure happens
XGDMatrixGetStrFeatureInfo
\brief Get string encoded information of all features.
XGDMatrixGetUIntInfo
\brief get uint32 info vector from matrix \param handle a instance of data matrix \param field field name \param out_len The length of the field. \param out_dptr pointer to the result \return 0 when success, -1 when failure happens
XGDMatrixNumCol
\brief get number of columns \param handle the handle to the DMatrix \param out The output of number of columns \return 0 when success, -1 when failure happens
XGDMatrixNumRow
\brief get number of rows. \param handle the handle to the DMatrix \param out The address to hold number of rows. \return 0 when success, -1 when failure happens
XGDMatrixSaveBinary
\brief load a data matrix into binary file \param handle a instance of data matrix \param fname file name \param silent print statistics when saving \return 0 when success, -1 when failure happens
XGDMatrixSetDenseInfo
\brief Set meta info from dense matrix. Valid field names are:
XGDMatrixSetFloatInfo
\brief set float vector to a content in info \param handle a instance of data matrix \param field field name, can be label, weight \param array pointer to float vector \param len length of array \return 0 when success, -1 when failure happens
XGDMatrixSetGroup
\brief (deprecated) Use XGDMatrixSetUIntInfo instead. Set group of the training matrix \param handle a instance of data matrix \param group pointer to group size \param len length of array \return 0 when success, -1 when failure happens
XGDMatrixSetInfoFromInterface
\brief Set content in array interface to a content in info. \param handle a instance of data matrix \param field field name. \param c_interface_str JSON string representation of array interface. \return 0 when success, -1 when failure happens
XGDMatrixSetStrFeatureInfo
\brief Set string encoded information of all features.
XGDMatrixSetUIntInfo
\brief set uint32 vector to a content in info \param handle a instance of data matrix \param field field name \param array pointer to unsigned int vector \param len length of array \return 0 when success, -1 when failure happens
XGDMatrixSliceDMatrix
\brief create a new dmatrix from sliced content of existing matrix \param handle instance of data matrix to be sliced \param idxset index set \param len length of index set \param out a sliced new matrix \return 0 when success, -1 when failure happens
XGDMatrixSliceDMatrixEx
\brief create a new dmatrix from sliced content of existing matrix \param handle instance of data matrix to be sliced \param idxset index set \param len length of index set \param out a sliced new matrix \param allow_groups allow slicing of an array with groups \return 0 when success, -1 when failure happens
XGDeviceQuantileDMatrixCreateFromCallback
\brief Create a Quantile DMatrix with data iterator.
XGProxyDMatrixCreate
\brief Create a DMatrix proxy for setting data, can be free by XGDMatrixFree.
XGProxyDMatrixSetDataCSR
\brief Set data on a DMatrix proxy.
XGProxyDMatrixSetDataCudaArrayInterface
\brief Set data on a DMatrix proxy.
XGProxyDMatrixSetDataCudaColumnar
\brief Set data on a DMatrix proxy.
XGProxyDMatrixSetDataDense
\brief Set data on a DMatrix proxy.
__asprintf
__getdelim
__overflow
__uflow
asprintf
clearerr
clearerr_unlocked
ctermid
cuserid
dprintf
fclose
fcloseall
fdopen
feof
feof_unlocked
ferror
ferror_unlocked
fflush
fflush_unlocked
fgetc
fgetc_unlocked
fgetpos
fgetpos64
fgets
fgets_unlocked
fileno
fileno_unlocked
flockfile
fmemopen
fopen
fopen64
fopencookie
fprintf
fputc
fputc_unlocked
fputs
fputs_unlocked
fread
fread_unlocked
freopen
freopen64
fscanf
fscanf1
fseek
fseeko
fseeko64
fsetpos
fsetpos64
ftell
ftello
ftello64
ftrylockfile
funlockfile
fwrite
fwrite_unlocked
getc
getc_unlocked
getchar
getchar_unlocked
getdelim
getline
gets
getw
obstack_printf
obstack_vprintf
open_memstream
pclose
perror
popen
printf
putc
putc_unlocked
putchar
putchar_unlocked
puts
putw
remove
rename
renameat
renameat2
rewind
scanf
scanf1
setbuf
setbuffer
setlinebuf
setvbuf
snprintf
sprintf
sscanf
sscanf1
std___glibcxx_assert_fail
tempnam
tmpfile
tmpfile64
tmpnam
tmpnam_r
ungetc
vasprintf
vdprintf
vfprintf
vfscanf
vfscanf1
vprintf
vscanf
vscanf1
vsnprintf
vsprintf
vsscanf
vsscanf1

Type Aliases§

BoosterHandle
\brief handle to Booster
DMatrixHandle
\brief handle to DMatrix
DataHolderHandle
\brief handle to a internal data holder.
DataIterHandle
\brief handle to a external data iterator
DataIterResetCallback
\brief Callback function prototype for resetting external iterator
FILE
XGBCallbackDataIterNext
\brief The data reading callback function. The iterator will be able to give subset of batch in the data.
XGBCallbackSetData
\brief Callback to set the data to handle, \param handle The handle to the callback. \param batch The data content to be set.
XGDMatrixCallbackNext
\brief Callback function prototype for getting next batch of data.
_Float32
_Float64
_Float32x
_Float64x
_IO_lock_t
__FILE
__blkcnt64_t
__blkcnt_t
__blksize_t
__builtin_va_list
__caddr_t
__clock_t
__clockid_t
__daddr_t
__dev_t
__fpos64_t
__fpos_t
__fsblkcnt64_t
__fsblkcnt_t
__fsfilcnt64_t
__fsfilcnt_t
__fsword_t
__gid_t
__gnuc_va_list
__id_t
__ino64_t
__ino_t
__int8_t
__int16_t
__int32_t
__int64_t
__int_least8_t
__int_least16_t
__int_least32_t
__int_least64_t
__intmax_t
__intptr_t
__key_t
__loff_t
__mode_t
__nlink_t
__off64_t
__off_t
__pid_t
__quad_t
__rlim64_t
__rlim_t
__sig_atomic_t
__socklen_t
__ssize_t
__suseconds64_t
__suseconds_t
__syscall_slong_t
__syscall_ulong_t
__time_t
__timer_t
__u_char
__u_int
__u_long
__u_quad_t
__u_short
__uid_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
__uint_least8_t
__uint_least16_t
__uint_least32_t
__uint_least64_t
__uintmax_t
__useconds_t
bst_ulong
cookie_close_function_t
cookie_io_functions_t
cookie_read_function_t
cookie_seek_function_t
cookie_write_function_t
fpos64_t
fpos_t
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
off64_t
off_t
rbt_ulong
\brief rabit unsigned long type
std_nullptr_t
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t
va_list

Unions§

__mbstate_t__bindgen_ty_1