| 1098 | } |
| 1099 | |
| 1100 | int LGBM_BoosterLoadModelFromString( |
| 1101 | const char* model_str, |
| 1102 | int* out_num_iterations, |
| 1103 | BoosterHandle* out) { |
| 1104 | API_BEGIN(); |
| 1105 | auto ret = std::unique_ptr<Booster>(new Booster(nullptr)); |
| 1106 | ret->LoadModelFromString(model_str); |
| 1107 | *out_num_iterations = ret->GetBoosting()->GetCurrentIteration(); |
| 1108 | *out = ret.release(); |
| 1109 | API_END(); |
| 1110 | } |
| 1111 | |
| 1112 | #pragma warning(disable : 4702) |
| 1113 | int LGBM_BoosterFree(BoosterHandle handle) { |
no test coverage detected