| 393 | } |
| 394 | |
| 395 | int GetEvalNames(char** out_strs) const { |
| 396 | int idx = 0; |
| 397 | for (const auto& metric : train_metric_) { |
| 398 | for (const auto& name : metric->GetName()) { |
| 399 | std::memcpy(out_strs[idx], name.c_str(), name.size() + 1); |
| 400 | ++idx; |
| 401 | } |
| 402 | } |
| 403 | return idx; |
| 404 | } |
| 405 | |
| 406 | int GetFeatureNames(char** out_strs) const { |
| 407 | int idx = 0; |
no test coverage detected