MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / LGBM_BoosterCreate

Function LGBM_BoosterCreate

python-package/compile/src/c_api.cpp:1079–1087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1077// ---- start of booster
1078
1079int LGBM_BoosterCreate(const DatasetHandle train_data,
1080 const char* parameters,
1081 BoosterHandle* out) {
1082 API_BEGIN();
1083 const Dataset* p_train_data = reinterpret_cast<const Dataset*>(train_data);
1084 auto ret = std::unique_ptr<Booster>(new Booster(p_train_data, parameters));
1085 *out = ret.release();
1086 API_END();
1087}
1088
1089int LGBM_BoosterCreateFromModelfile(
1090 const char* filename,

Callers 1

LGBM_BoosterCreate_RFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected