treelite
|
Functions | |
int | TreeliteLoadXGBoostModelLegacyBinary (char const *filename, char const *config_json, TreeliteModelHandle *out) |
Load a model file generated by XGBoost (dmlc/xgboost), stored in the legacy binary format. More... | |
int | TreeliteLoadXGBoostModelLegacyBinaryFromMemoryBuffer (void const *buf, size_t len, char const *config_json, TreeliteModelHandle *out) |
Load an XGBoost model from a memory buffer using the legacy binary format. More... | |
int | TreeliteLoadXGBoostModel (char const *filename, char const *config_json, TreeliteModelHandle *out) |
Load a model file generated by XGBoost (dmlc/xgboost), stored in the JSON format. More... | |
int | TreeliteLoadXGBoostModelFromString (char const *json_str, size_t length, char const *config_json, TreeliteModelHandle *out) |
Load an XGBoost model from a JSON string. More... | |
int | TreeliteLoadLightGBMModel (char const *filename, char const *config_json, TreeliteModelHandle *out) |
Load a model file generated by LightGBM (Microsoft/LightGBM). The model file must contain a decision tree ensemble. More... | |
int | TreeliteLoadLightGBMModelFromString (char const *model_str, char const *config_json, TreeliteModelHandle *out) |
Load a LightGBM model from a string. The string should be created with the model_to_string() method in LightGBM. More... | |
int TreeliteLoadLightGBMModel | ( | char const * | filename, |
char const * | config_json, | ||
TreeliteModelHandle * | out | ||
) |
Load a model file generated by LightGBM (Microsoft/LightGBM). The model file must contain a decision tree ensemble.
filename | Name of model file |
config_json | Null-terminated JSON string consisting key-value pairs; used for configuring the model parser |
out | Loaded model |
int TreeliteLoadLightGBMModelFromString | ( | char const * | model_str, |
char const * | config_json, | ||
TreeliteModelHandle * | out | ||
) |
Load a LightGBM model from a string. The string should be created with the model_to_string() method in LightGBM.
model_str | Model string |
config_json | Null-terminated JSON string consisting key-value pairs; used for configuring the model parser |
out | Loaded model |
int TreeliteLoadXGBoostModel | ( | char const * | filename, |
char const * | config_json, | ||
TreeliteModelHandle * | out | ||
) |
Load a model file generated by XGBoost (dmlc/xgboost), stored in the JSON format.
filename | Name of model file |
config_json | Null-terminated JSON string consisting key-value pairs; used for configuring the model parser |
out | Loaded model |
int TreeliteLoadXGBoostModelFromString | ( | char const * | json_str, |
size_t | length, | ||
char const * | config_json, | ||
TreeliteModelHandle * | out | ||
) |
Load an XGBoost model from a JSON string.
json_str | JSON string containing the XGBoost model |
length | Length of the JSON string |
config_json | Null-terminated JSON string consisting key-value pairs; used for configuring the model parser |
out | Loaded model |
int TreeliteLoadXGBoostModelLegacyBinary | ( | char const * | filename, |
char const * | config_json, | ||
TreeliteModelHandle * | out | ||
) |
Load a model file generated by XGBoost (dmlc/xgboost), stored in the legacy binary format.
filename | Name of model file |
config_json | JSON string consisting key-value pairs; used for configuring the model parser |
out | Loaded model |
int TreeliteLoadXGBoostModelLegacyBinaryFromMemoryBuffer | ( | void const * | buf, |
size_t | len, | ||
char const * | config_json, | ||
TreeliteModelHandle * | out | ||
) |
Load an XGBoost model from a memory buffer using the legacy binary format.
buf | Memory buffer |
len | Size of memory buffer |
config_json | Null-terminated JSON string consisting key-value pairs; used for configuring the model parser |
out | Loaded model |