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

Method GetInt

include/LightGBM/config.h:887–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

885}
886
887inline bool Config::GetInt(
888 const std::unordered_map<std::string, std::string>& params,
889 const std::string& name, int* out) {
890 if (params.count(name) > 0 && !params.at(name).empty()) {
891 if (!Common::AtoiAndCheck(params.at(name).c_str(), out)) {
892 Log::Fatal("Parameter %s should be of type int, got \"%s\"",
893 name.c_str(), params.at(name).c_str());
894 }
895 return true;
896 }
897 return false;
898}
899
900inline bool Config::GetDouble(
901 const std::unordered_map<std::string, std::string>& params,

Callers

nothing calls this directly

Calls 4

AtoiAndCheckFunction · 0.50
countMethod · 0.45
emptyMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected