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

Function GetBoostingTypeFromModelFile

src/boosting/boosting.cpp:14–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace LightGBM {
13
14std::string GetBoostingTypeFromModelFile(const char* filename) {
15 TextReader<size_t> model_reader(filename, true);
16 std::string type = model_reader.first_line();
17 return type;
18}
19
20bool Boosting::LoadFileToBoosting(Boosting* boosting, const char* filename) {
21 auto start_time = std::chrono::steady_clock::now();

Callers 1

CreateBoostingMethod · 0.70

Calls 1

first_lineMethod · 0.45

Tested by

no test coverage detected