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

Method GetEvalNames

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

Source from the content-addressed store, hash-verified

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;

Callers 1

LGBM_BoosterGetEvalNamesFunction · 0.45

Calls 2

GetNameMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected