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

Function GetObjectiveType

src/io/config.cpp:82–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void GetObjectiveType(const std::unordered_map<std::string, std::string>& params, std::string* objective) {
83 std::string value;
84 if (Config::GetString(params, "objective", &value)) {
85 std::transform(value.begin(), value.end(), value.begin(), Common::tolower);
86 *objective = ParseObjectiveAlias(value);
87 }
88}
89
90void GetMetricType(const std::unordered_map<std::string, std::string>& params, std::vector<std::string>* metric) {
91 std::string value;

Callers 1

SetMethod · 0.70

Calls 4

transformFunction · 0.85
ParseObjectiveAliasFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected