Index
Modules:
xgboost
,
xgboost/libxgboost
.
API symbols
baseMargin:
XGDMatrixInfoKey.baseMargin
BoosterHandle:
libxgboost: BoosterHandle
bst_ulong:
libxgboost: bst_ulong
DataHolderHandle:
libxgboost: DataHolderHandle
DataIterHandle:
libxgboost: DataIterHandle
DataIterResetCallback:
libxgboost: DataIterResetCallback
DMatrixHandle:
libxgboost: DMatrixHandle
eval:
xgboost: eval(b: XGBooster; iter: int; dmats: openArray[(string, XGDMatrix)]): string
featureWeights:
XGDMatrixInfoKey.featureWeights
finalize:
xgboost: finalize(b: XGBooster)
getAttr:
xgboost: getAttr(b: XGBooster; key: string): Option[string]
getAttrNames:
xgboost: getAttrNames(b: XGBooster): seq[string]
getFloatInfo:
xgboost: getFloatInfo(handle: XGDMatrix; field: string): seq[float32]
getStrFeatureInfo:
xgboost: getStrFeatureInfo(handle: XGDMatrix; field: string): seq[string]
getUIntInfo:
xgboost: getUIntInfo(handle: XGDMatrix; field: string): seq[uint32]
group:
XGDMatrixInfoKey.group
label:
XGDMatrixInfoKey.label
labelLowerBound:
XGDMatrixInfoKey.labelLowerBound
labelUpperBound:
XGDMatrixInfoKey.labelUpperBound
libxgboost:
libxgboost: libxgboost
loadModel:
xgboost: loadModel(b: XGBooster; fname: string)
nCol:
xgboost: nCol(m: XGDMatrix): int
newXGBooster:
xgboost: newXGBooster(toCaches: seq[XGDMatrix] = @[]): XGBooster
newXGDMatrix:
xgboost: newXGDMatrix[N: static int](data: seq[array[N, float32]]; missing: float32 = DEFAULT_MISSING): XGDMatrix
xgboost: newXGDMatrix(data: seq[float32]; nRow: int; missing: float32 = DEFAULT_MISSING): XGDMatrix
xgboost: newXGDMatrix(data: seq[float32]; nRow, nCol: int; missing: float32 = DEFAULT_MISSING): XGDMatrix
xgboost: newXGDMatrix(fname: string; silent: int = 1): XGDMatrix
nRow:
xgboost: nRow(m: XGDMatrix): int
predict:
xgboost: predict(b: XGBooster; v: seq[float32]; missing: float32 = DEFAULT_MISSING): float32
xgboost: predict(b: XGBooster; m: XGDMatrix): seq[float32]
predictSeq:
xgboost: predictSeq(b: XGBooster; v: seq[float32]; missing: float32 = DEFAULT_MISSING): seq[ float32]
xgboost: predictSeq(b: XGBooster; m: XGDMatrix): seq[seq[float32]]
qid:
XGDMatrixInfoKey.qid
saveBinary:
xgboost: saveBinary(handle: XGDMatrix; fname: string; silent: int = 1)
saveModel:
xgboost: saveModel(b: XGBooster; fname: string)
setAttr:
xgboost: setAttr(b: XGBooster; key, value: string)
setInfo:
xgboost: setInfo(handle: XGDMatrix; field: XGDMatrixInfoKey | string; arr: seq[float32])
xgboost: setInfo(handle: XGDMatrix; field: XGDMatrixInfoKey | string; arr: seq[string])
xgboost: setInfo(handle: XGDMatrix; field: XGDMatrixInfoKey | string; arr: seq[uint32])
setParam:
xgboost: setParam(b: XGBooster; pairs: openArray[(string, string)])
xgboost: setParam(b: XGBooster; name, value: string)
slice:
xgboost: slice(handle: XGDMatrix; idx: seq[int]): XGDMatrix
train:
xgboost: train(params: openArray[(string, string)]; dtrain: XGDMatrix; num_boost_round: int = 10; evals: openArray[(string, XGDMatrix)] = []): XGBooster
update:
xgboost: update(b: XGBooster; iter: int; dtrain: XGDMatrix)
weight:
XGDMatrixInfoKey.weight
XGBCallbackDataIterNext:
libxgboost: XGBCallbackDataIterNext
XGBCallbackSetData:
libxgboost: XGBCallbackSetData
xgbGetGlobalConfig:
xgboost: xgbGetGlobalConfig(): JsonNode
XGBGetGlobalConfig:
libxgboost: XGBGetGlobalConfig(json_str: cstringArray): cint
xgbGetLastError:
xgboost: xgbGetLastError(): string
XGBGetLastError:
libxgboost: XGBGetLastError(): cstring
XGBoostBatchCSR:
libxgboost: XGBoostBatchCSR
XGBooster:
xgboost: XGBooster
XGBoosterBoostedRounds:
libxgboost: XGBoosterBoostedRounds(handle: BoosterHandle; out: ptr cint): cint
XGBoosterBoostOneIter:
libxgboost: XGBoosterBoostOneIter(handle: BoosterHandle; dtrain: DMatrixHandle; grad: ptr cfloat; hess: ptr cfloat; len: bst_ulong): cint
XGBoosterCreate:
libxgboost: XGBoosterCreate(dmats: ptr DMatrixHandle; len: bst_ulong; out: ptr BoosterHandle): cint
XGBoosterDumpModel:
libxgboost: XGBoosterDumpModel(handle: BoosterHandle; fmap: cstring; with_stats: cint; out_len: ptr bst_ulong; out_dump_array: ptr cstringArray): cint
XGBoosterDumpModelEx:
libxgboost: XGBoosterDumpModelEx(handle: BoosterHandle; fmap: cstring; with_stats: cint; format: cstring; out_len: ptr bst_ulong; out_dump_array: ptr cstringArray): cint
XGBoosterDumpModelExWithFeatures:
libxgboost: XGBoosterDumpModelExWithFeatures(handle: BoosterHandle; fnum: cint; fname: cstringArray; ftype: cstringArray; with_stats: cint; format: cstring; out_len: ptr bst_ulong; out_models: ptr cstringArray): cint
XGBoosterDumpModelWithFeatures:
libxgboost: XGBoosterDumpModelWithFeatures(handle: BoosterHandle; fnum: cint; fname: cstringArray; ftype: cstringArray; with_stats: cint; out_len: ptr bst_ulong; out_models: ptr cstringArray): cint
XGBoosterEvalOneIter:
libxgboost: XGBoosterEvalOneIter(handle: BoosterHandle; iter: cint; dmats: ptr DMatrixHandle; evnames: ptr cstring; len: bst_ulong; out_result: cstringArray): cint
XGBoosterFree:
libxgboost: XGBoosterFree(handle: BoosterHandle): cint
XGBoosterGetAttr:
libxgboost: XGBoosterGetAttr(handle: BoosterHandle; key: cstring; out: cstringArray; success: ptr cint): cint
XGBoosterGetAttrNames:
libxgboost: XGBoosterGetAttrNames(handle: BoosterHandle; out_len: ptr bst_ulong; out: ptr cstringArray): cint
XGBoosterGetModelRaw:
libxgboost: XGBoosterGetModelRaw(handle: BoosterHandle; out_len: ptr bst_ulong; out_dptr: cstringArray): cint
XGBoosterGetNumFeature:
libxgboost: XGBoosterGetNumFeature(handle: BoosterHandle; out: ptr bst_ulong): cint
XGBoosterGetStrFeatureInfo:
libxgboost: XGBoosterGetStrFeatureInfo(handle: BoosterHandle; field: cstring; len: ptr bst_ulong; out_features: ptr cstringArray): cint
XGBoosterLoadJsonConfig:
libxgboost: XGBoosterLoadJsonConfig(handle: BoosterHandle; json_parameters: cstring): cint
XGBoosterLoadModel:
libxgboost: XGBoosterLoadModel(handle: BoosterHandle; fname: cstring): cint
XGBoosterLoadModelFromBuffer:
libxgboost: XGBoosterLoadModelFromBuffer(handle: BoosterHandle; buf: pointer; len: bst_ulong): cint
XGBoosterLoadRabitCheckpoint:
libxgboost: XGBoosterLoadRabitCheckpoint(handle: BoosterHandle; version: ptr cint): cint
XGBoosterPredict:
libxgboost: XGBoosterPredict(handle: BoosterHandle; dmat: DMatrixHandle; option_mask: cint; ntree_limit: cuint; training: cint; out_len: ptr bst_ulong; out_result: ptr ptr cfloat): cint
XGBoosterPredictFromCSR:
libxgboost: XGBoosterPredictFromCSR(handle: BoosterHandle; indptr: cstring; indices: cstring; values: cstring; ncol: bst_ulong; c_json_config: cstring; m: DMatrixHandle; out_shape: ptr ptr bst_ulong; out_dim: ptr bst_ulong; out_result: ptr ptr cfloat): cint
XGBoosterPredictFromCudaArray:
libxgboost: XGBoosterPredictFromCudaArray(handle: BoosterHandle; values: cstring; c_json_config: cstring; m: DMatrixHandle; out_shape: ptr ptr bst_ulong; out_dim: ptr bst_ulong; out_result: ptr ptr cfloat): cint
XGBoosterPredictFromCudaColumnar:
libxgboost: XGBoosterPredictFromCudaColumnar(handle: BoosterHandle; values: cstring; c_json_config: cstring; m: DMatrixHandle; out_shape: ptr ptr bst_ulong; out_dim: ptr bst_ulong; out_result: ptr ptr cfloat): cint
XGBoosterPredictFromDense:
libxgboost: XGBoosterPredictFromDense(handle: BoosterHandle; values: cstring; c_json_config: cstring; m: DMatrixHandle; out_shape: ptr ptr bst_ulong; out_dim: ptr bst_ulong; out_result: ptr ptr cfloat): cint
XGBoosterPredictFromDMatrix:
libxgboost: XGBoosterPredictFromDMatrix(handle: BoosterHandle; dmat: DMatrixHandle; c_json_config: cstring; out_shape: ptr ptr bst_ulong; out_dim: ptr bst_ulong; out_result: ptr ptr cfloat): cint
XGBoosterSaveJsonConfig:
libxgboost: XGBoosterSaveJsonConfig(handle: BoosterHandle; out_len: ptr bst_ulong; out_str: cstringArray): cint
XGBoosterSaveModel:
libxgboost: XGBoosterSaveModel(handle: BoosterHandle; fname: cstring): cint
XGBoosterSaveRabitCheckpoint:
libxgboost: XGBoosterSaveRabitCheckpoint(handle: BoosterHandle): cint
XGBoosterSerializeToBuffer:
libxgboost: XGBoosterSerializeToBuffer(handle: BoosterHandle; out_len: ptr bst_ulong; out_dptr: cstringArray): cint
XGBoosterSetAttr:
libxgboost: XGBoosterSetAttr(handle: BoosterHandle; key: cstring; value: cstring): cint
XGBoosterSetParam:
libxgboost: XGBoosterSetParam(handle: BoosterHandle; name: cstring; value: cstring): cint
XGBoosterSetStrFeatureInfo:
libxgboost: XGBoosterSetStrFeatureInfo(handle: BoosterHandle; field: cstring; features: cstringArray; size: bst_ulong): cint
XGBoosterSlice:
libxgboost: XGBoosterSlice(handle: BoosterHandle; begin_layer: cint; end_layer: cint; step: cint; out: ptr BoosterHandle): cint
XGBoosterUnserializeFromBuffer:
libxgboost: XGBoosterUnserializeFromBuffer(handle: BoosterHandle; buf: pointer; len: bst_ulong): cint
XGBoosterUpdateOneIter:
libxgboost: XGBoosterUpdateOneIter(handle: BoosterHandle; iter: cint; dtrain: DMatrixHandle): cint
XGBoostVersion:
libxgboost: XGBoostVersion(major: ptr cint; minor: ptr cint; patch: ptr cint)
xgbRegisterLogCallback:
xgboost: xgbRegisterLogCallback(callback: proc (msg: string) {.gcsafe.})
XGBRegisterLogCallback:
libxgboost: XGBRegisterLogCallback(callback: proc (a1: cstring) {.cdecl.}): cint
xgbSetGlobalConfig:
xgboost: xgbSetGlobalConfig(json: JsonNode)
XGBSetGlobalConfig:
libxgboost: XGBSetGlobalConfig(json_str: cstring): cint
xgbVersion:
xgboost: xgbVersion(): tuple[major: int, minor: int, patch: int]
XGDevice:
xgboost: XGDevice
XGDeviceQuantileDMatrixCreateFromCallback:
libxgboost: XGDeviceQuantileDMatrixCreateFromCallback(iter: DataIterHandle; proxy: DMatrixHandle; reset: ptr DataIterResetCallback; next: ptr XGDMatrixCallbackNext; missing: cfloat; nthread: cint; max_bin: cint; out: ptr DMatrixHandle): cint
XGDeviceQuantileDMatrixSetDataCudaArrayInterface:
libxgboost: XGDeviceQuantileDMatrixSetDataCudaArrayInterface(handle: DMatrixHandle; c_interface_str: cstring): cint
XGDeviceQuantileDMatrixSetDataCudaColumnar:
libxgboost: XGDeviceQuantileDMatrixSetDataCudaColumnar(handle: DMatrixHandle; c_interface_str: cstring): cint
XGDMatrix:
xgboost: XGDMatrix
XGDMatrixCallbackNext:
libxgboost: XGDMatrixCallbackNext
XGDMatrixCreateFromCSCEx:
libxgboost: XGDMatrixCreateFromCSCEx(col_ptr: ptr csize_t; indices: ptr cuint; data: ptr cfloat; nindptr: csize_t; nelem: csize_t; num_row: csize_t; out: ptr DMatrixHandle): cint
XGDMatrixCreateFromCSR:
libxgboost: XGDMatrixCreateFromCSR(indptr: cstring; indices: cstring; data: cstring; ncol: bst_ulong; json_config: cstring; out: ptr DMatrixHandle): cint
XGDMatrixCreateFromCSREx:
libxgboost: XGDMatrixCreateFromCSREx(indptr: ptr csize_t; indices: ptr cuint; data: ptr cfloat; nindptr: csize_t; nelem: csize_t; num_col: csize_t; out: ptr DMatrixHandle): cint
XGDMatrixCreateFromDataIter:
libxgboost: XGDMatrixCreateFromDataIter(data_handle: DataIterHandle; callback: ptr XGBCallbackDataIterNext; cache_info: cstring; out: ptr DMatrixHandle): cint
XGDMatrixCreateFromDT:
libxgboost: XGDMatrixCreateFromDT(data: ptr pointer; feature_stypes: cstringArray; nrow: bst_ulong; ncol: bst_ulong; out: ptr DMatrixHandle; nthread: cint): cint
XGDMatrixCreateFromFile:
libxgboost: XGDMatrixCreateFromFile(fname: cstring; silent: cint; out: ptr DMatrixHandle): cint
XGDMatrixCreateFromMat:
libxgboost: XGDMatrixCreateFromMat(data: ptr cfloat; nrow: bst_ulong; ncol: bst_ulong; missing: cfloat; out: ptr DMatrixHandle): cint
XGDMatrixCreateFromMat_omp:
libxgboost: XGDMatrixCreateFromMat_omp(data: ptr cfloat; nrow: bst_ulong; ncol: bst_ulong; missing: cfloat; out: ptr DMatrixHandle; nthread: cint): cint
XGDMatrixFree:
libxgboost: XGDMatrixFree(handle: DMatrixHandle): cint
XGDMatrixGetFloatInfo:
libxgboost: XGDMatrixGetFloatInfo(handle: DMatrixHandle; field: cstring; out_len: ptr bst_ulong; out_dptr: ptr ptr cfloat): cint
XGDMatrixGetStrFeatureInfo:
libxgboost: XGDMatrixGetStrFeatureInfo(handle: DMatrixHandle; field: cstring; size: ptr bst_ulong; out_features: ptr cstringArray): cint
XGDMatrixGetUIntInfo:
libxgboost: XGDMatrixGetUIntInfo(handle: DMatrixHandle; field: cstring; out_len: ptr bst_ulong; out_dptr: ptr ptr cuint): cint
XGDMatrixInfoKey:
xgboost: XGDMatrixInfoKey
XGDMatrixNumCol:
libxgboost: XGDMatrixNumCol(handle: DMatrixHandle; out: ptr bst_ulong): cint
XGDMatrixNumRow:
libxgboost: XGDMatrixNumRow(handle: DMatrixHandle; out: ptr bst_ulong): cint
XGDMatrixSaveBinary:
libxgboost: XGDMatrixSaveBinary(handle: DMatrixHandle; fname: cstring; silent: cint): cint
XGDMatrixSetDenseInfo:
libxgboost: XGDMatrixSetDenseInfo(handle: DMatrixHandle; field: cstring; data: pointer; size: bst_ulong; type: cint): cint
XGDMatrixSetFloatInfo:
libxgboost: XGDMatrixSetFloatInfo(handle: DMatrixHandle; field: cstring; array: ptr cfloat; len: bst_ulong): cint
XGDMatrixSetGroup:
libxgboost: XGDMatrixSetGroup(handle: DMatrixHandle; group: ptr cuint; len: bst_ulong): cint
XGDMatrixSetInfoFromInterface:
libxgboost: XGDMatrixSetInfoFromInterface(handle: DMatrixHandle; field: cstring; c_interface_str: cstring): cint
XGDMatrixSetStrFeatureInfo:
libxgboost: XGDMatrixSetStrFeatureInfo(handle: DMatrixHandle; field: cstring; features: cstringArray; size: bst_ulong): cint
XGDMatrixSetUIntInfo:
libxgboost: XGDMatrixSetUIntInfo(handle: DMatrixHandle; field: cstring; array: ptr cuint; len: bst_ulong): cint
XGDMatrixSliceDMatrix:
libxgboost: XGDMatrixSliceDMatrix(handle: DMatrixHandle; idxset: ptr cint; len: bst_ulong; out: ptr DMatrixHandle): cint
XGDMatrixSliceDMatrixEx:
libxgboost: XGDMatrixSliceDMatrixEx(handle: DMatrixHandle; idxset: ptr cint; len: bst_ulong; out: ptr DMatrixHandle; allow_groups: cint): cint
XGError:
xgboost: XGError
XGProxyDMatrixCreate:
libxgboost: XGProxyDMatrixCreate(out: ptr DMatrixHandle): cint