Constants§
- C_
API_ DTYPE_ FLOA T32 - C_
API_ DTYPE_ FLOA T64 - C_
API_ DTYPE_ INT32 - C_
API_ DTYPE_ INT64 - C_
API_ FEATURE_ IMPORTANCE_ GAIN - C_
API_ FEATURE_ IMPORTANCE_ SPLIT - C_
API_ MATRIX_ TYPE_ CSC - C_
API_ MATRIX_ TYPE_ CSR - C_
API_ PREDICT_ CONTRIB - C_
API_ PREDICT_ LEAF_ INDEX - C_
API_ PREDICT_ NORMAL - C_
API_ PREDICT_ RAW_ SCORE
Functions§
- LGBM_
Booster ⚠AddValid Data - Add new validation data to booster.
- LGBM_
Booster ⚠Calc NumPredict - Get number of predictions.
- LGBM_
Booster ⚠Create - Create a new boosting learner.
- LGBM_
Booster ⚠Create From Modelfile - Load an existing booster from model file.
- LGBM_
Booster ⚠Dump Model - Dump model to JSON.
- LGBM_
Booster ⚠Feature Importance - Get model feature importance.
- LGBM_
Booster ⚠Free - Free space for booster.
- LGBM_
Booster ⚠Free Predict Sparse - Method corresponding to
LGBM_BoosterPredictSparseOutput
to free the allocated data. - LGBM_
Booster ⚠GetCurrent Iteration - Get index of the current boosting iteration.
- LGBM_
Booster ⚠GetEval - Get evaluation for training data and validation data.
- LGBM_
Booster ⚠GetEval Counts - Get number of evaluation metrics.
- LGBM_
Booster ⚠GetEval Names - Get names of evaluation metrics.
- LGBM_
Booster ⚠GetFeature Names - Get names of features.
- LGBM_
Booster ⚠GetLeaf Value - Get leaf value.
- LGBM_
Booster ⚠GetLinear - Get int representing whether booster is fitting linear trees.
- LGBM_
Booster ⚠GetLoaded Param - Get parameters as JSON string.
- LGBM_
Booster ⚠GetLower Bound Value - Get model lower bound value.
- LGBM_
Booster ⚠GetNum Classes - Get number of classes.
- LGBM_
Booster ⚠GetNum Feature - Get number of features.
- LGBM_
Booster ⚠GetNum Predict - Get number of predictions for training data and validation data (this can be used to support customized evaluation functions).
- LGBM_
Booster ⚠GetPredict - Get prediction for training data and validation data.
- LGBM_
Booster ⚠GetUpper Bound Value - Get model upper bound value.
- LGBM_
Booster ⚠Load Model From String - Load an existing booster from string.
- LGBM_
Booster ⚠Merge - Merge model from
other_handle
intohandle
. - LGBM_
Booster ⚠NumModel PerIteration - Get number of trees per iteration.
- LGBM_
Booster ⚠Number OfTotal Model - Get number of weak sub-models.
- LGBM_
Booster ⚠Predict ForCSC - Make prediction for a new dataset in CSC format.
- LGBM_
Booster ⚠Predict ForCSR - Make prediction for a new dataset in CSR format.
- LGBM_
Booster ⚠Predict ForCSR Single Row - Make prediction for a new dataset in CSR format. This method re-uses the internal predictor structure from previous calls and is optimized for single row invocation.
- LGBM_
Booster ⚠Predict ForCSR Single RowFast - Faster variant of
LGBM_BoosterPredictForCSRSingleRow
. - LGBM_
Booster ⚠Predict ForCSR Single RowFast Init - Initialize and return a
FastConfigHandle
for use withLGBM_BoosterPredictForCSRSingleRowFast
. - LGBM_
Booster ⚠Predict ForFile - Make prediction for file.
- LGBM_
Booster ⚠Predict ForMat - Make prediction for a new dataset.
- LGBM_
Booster ⚠Predict ForMat Single Row - Make prediction for a new dataset. This method re-uses the internal predictor structure from previous calls and is optimized for single row invocation.
- LGBM_
Booster ⚠Predict ForMat Single RowFast - Faster variant of
LGBM_BoosterPredictForMatSingleRow
. - LGBM_
Booster ⚠Predict ForMat Single RowFast Init - Initialize and return a
FastConfigHandle
for use withLGBM_BoosterPredictForMatSingleRowFast
. - LGBM_
Booster ⚠Predict ForMats - Make prediction for a new dataset presented in a form of array of pointers to rows.
- LGBM_
Booster ⚠Predict Sparse Output - Make sparse prediction for a new dataset in CSR or CSC format. Currently only used for feature contributions.
- LGBM_
Booster ⚠Refit - Refit the tree model using the new data (online learning).
- LGBM_
Booster ⚠Reset Parameter - Reset config for booster.
- LGBM_
Booster ⚠Reset Training Data - Reset training data for booster.
- LGBM_
Booster ⚠Rollback OneIter - Rollback one iteration.
- LGBM_
Booster ⚠Save Model - Save model into file.
- LGBM_
Booster ⚠Save Model ToString - Save model to string.
- LGBM_
Booster ⚠SetLeaf Value - Set leaf value.
- LGBM_
Booster ⚠Shuffle Models - Shuffle models.
- LGBM_
Booster ⚠Update OneIter - Update the model for one iteration.
- LGBM_
Booster ⚠Update OneIter Custom - Update the model by specifying gradient and Hessian directly (this can be used to support customized loss functions).
- LGBM_
Booster ⚠Validate Feature Names - Check that the feature names of the data match the ones used to train the booster.
- LGBM_
Byte ⚠Buffer Free - Free space for byte buffer.
- LGBM_
Byte ⚠Buffer GetAt - Get a ByteBuffer value at an index.
- LGBM_
Dataset ⚠AddFeatures From - Add features from
source
totarget
. - LGBM_
Dataset ⚠Create ByReference - Allocate the space for dataset and bucket feature bins according to reference dataset.
- LGBM_
Dataset ⚠Create FromCSC - Create a dataset from CSC format.
- LGBM_
Dataset ⚠Create FromCSR - Create a dataset from CSR format.
- LGBM_
Dataset ⚠Create FromCSR Func - Create a dataset from CSR format through callbacks.
- LGBM_
Dataset ⚠Create From File - Load dataset from file (like LightGBM CLI version does).
- LGBM_
Dataset ⚠Create From Mat - Create dataset from dense matrix.
- LGBM_
Dataset ⚠Create From Mats - Create dataset from array of dense matrices.
- LGBM_
Dataset ⚠Create From Sampled Column - Allocate the space for dataset and bucket feature bins according to sampled data.
- LGBM_
Dataset ⚠Create From Serialized Reference - Allocate the space for dataset and bucket feature bins according to serialized reference dataset.
- LGBM_
Dataset ⚠Dump Text - Save dataset to text file, intended for debugging use only.
- LGBM_
Dataset ⚠Free - Free space for dataset.
- LGBM_
Dataset ⚠GetFeature Names - Get feature names of dataset.
- LGBM_
Dataset ⚠GetFeature NumBin - Get number of bins for feature.
- LGBM_
Dataset ⚠GetField - Get info vector from dataset.
- LGBM_
Dataset ⚠GetNum Data - Get number of data points.
- LGBM_
Dataset ⚠GetNum Feature - Get number of features.
- LGBM_
Dataset ⚠GetSubset - Create subset of a data.
- LGBM_
Dataset ⚠Init Streaming - Initialize the Dataset for streaming.
- LGBM_
Dataset ⚠Mark Finished - Mark the Dataset as complete by calling
dataset->FinishLoad
. - LGBM_
Dataset ⚠Push Rows - Push data to existing dataset, if
nrow + start_row == num_total_row
, will calldataset->FinishLoad
. - LGBM_
Dataset ⚠Push Rows ByCSR - Push data to existing dataset, if
nrow + start_row == num_total_row
, will calldataset->FinishLoad
. - LGBM_
Dataset ⚠Push Rows ByCSR With Metadata - Push CSR data to existing dataset. (See
LGBM_DatasetPushRowsWithMetadata
for more details.) - LGBM_
Dataset ⚠Push Rows With Metadata - Push data to existing dataset. The general flow for a streaming scenario is:
- LGBM_
Dataset ⚠Save Binary - Save dataset to binary file.
- LGBM_
Dataset ⚠Serialize Reference ToBinary - Create a dataset schema representation as a binary byte array (excluding data).
- LGBM_
Dataset ⚠SetFeature Names - Save feature names to dataset.
- LGBM_
Dataset ⚠SetField - Set vector to a content in info.
- LGBM_
Dataset ⚠SetWait ForManual Finish - Set whether or not the Dataset waits for a manual MarkFinished call or calls FinishLoad on itself automatically.
Set to 1 for streaming scenario, and use
LGBM_DatasetMarkFinished
to manually finish the Dataset. - LGBM_
Dataset ⚠Update Param Checking - Raise errors for attempts to update dataset parameters.
- LGBM_
Dump ⚠Param Aliases - Dump all parameter names with their aliases to JSON.
- LGBM_
Fast ⚠Config Free - Release FastConfig object.
- LGBM_
GetLast ⚠Error - Get string message of the last error.
- LGBM_
GetSample ⚠Count - Get number of samples based on parameters and total number of rows of data.
- LGBM_
Network ⚠Free - Finalize the network.
- LGBM_
Network ⚠Init - Initialize the network.
- LGBM_
Network ⚠Init With Functions - Initialize the network with external collective functions.
- LGBM_
Register ⚠LogCallback - Register a callback function for log redirecting.
- LGBM_
Sample ⚠Indices - Create sample indices for total number of rows.
- LGBM_
SetLast ⚠Error - Set string message of the last error.