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

Method GetDouble

include/LightGBM/config.h:900–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898}
899
900inline bool Config::GetDouble(
901 const std::unordered_map<std::string, std::string>& params,
902 const std::string& name, double* out) {
903 if (params.count(name) > 0 && !params.at(name).empty()) {
904 if (!Common::AtofAndCheck(params.at(name).c_str(), out)) {
905 Log::Fatal("Parameter %s should be of type double, got \"%s\"",
906 name.c_str(), params.at(name).c_str());
907 }
908 return true;
909 }
910 return false;
911}
912
913inline bool Config::GetBool(
914 const std::unordered_map<std::string, std::string>& params,

Callers

nothing calls this directly

Calls 4

AtofAndCheckFunction · 0.50
countMethod · 0.45
emptyMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected