treelite
|
Namespaces | |
sklearn | |
Functions | |
std::unique_ptr< treelite::Model > | LoadXGBoostModelLegacyBinary (std::string const &filename) |
Load a model file generated by XGBoost (dmlc/xgboost), stored in the legacy binary format. More... | |
std::unique_ptr< treelite::Model > | LoadXGBoostModelLegacyBinary (void const *buf, std::size_t len) |
Load an XGBoost model from a memory buffer. More... | |
std::unique_ptr< treelite::Model > | LoadXGBoostModel (std::string const &filename, char const *config_json) |
Load a model file generated by XGBoost (dmlc/xgboost), stored in the JSON format. More... | |
std::unique_ptr< treelite::Model > | LoadXGBoostModelFromString (char const *json_str, std::size_t length, char const *config_json) |
Load an XGBoost model from a JSON string. More... | |
std::unique_ptr< treelite::Model > | LoadLightGBMModel (std::string const &filename) |
load a model file generated by LightGBM (Microsoft/LightGBM). The model file must contain a decision tree ensemble. More... | |
std::unique_ptr< treelite::Model > | LoadLightGBMModelFromString (char const *model_str) |
Load a LightGBM model from a string. The string should be created with the model_to_string() method in LightGBM. More... | |
std::unique_ptr<treelite::Model> treelite::model_loader::LoadLightGBMModel | ( | std::string const & | filename | ) |
load a model file generated by LightGBM (Microsoft/LightGBM). The model file must contain a decision tree ensemble.
filename | name of model file |
std::unique_ptr<treelite::Model> treelite::model_loader::LoadLightGBMModelFromString | ( | char const * | model_str | ) |
Load a LightGBM model from a string. The string should be created with the model_to_string() method in LightGBM.
model_str | the model string |
std::unique_ptr<treelite::Model> treelite::model_loader::LoadXGBoostModel | ( | std::string const & | filename, |
char const * | config_json | ||
) |
Load a model file generated by XGBoost (dmlc/xgboost), stored in the JSON format.
filename | Name of model file |
config_json | JSON string consisting of key-value pairs; used for configuring the model parser |
std::unique_ptr<treelite::Model> treelite::model_loader::LoadXGBoostModelFromString | ( | char const * | json_str, |
std::size_t | length, | ||
char const * | config_json | ||
) |
Load an XGBoost model from a JSON string.
json_str | JSON char array |
length | Length of JSON char array |
config_json | JSON string consisting of key-value pairs; used for configuring the model parser |
std::unique_ptr<treelite::Model> treelite::model_loader::LoadXGBoostModelLegacyBinary | ( | std::string const & | filename | ) |
Load a model file generated by XGBoost (dmlc/xgboost), stored in the legacy binary format.
filename | Name of model file |
std::unique_ptr<treelite::Model> treelite::model_loader::LoadXGBoostModelLegacyBinary | ( | void const * | buf, |
std::size_t | len | ||
) |
Load an XGBoost model from a memory buffer.
buf | memory buffer |
len | size of memory buffer |