| 80 | } |
| 81 | |
| 82 | void 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 | |
| 90 | void GetMetricType(const std::unordered_map<std::string, std::string>& params, std::vector<std::string>* metric) { |
| 91 | std::string value; |
no test coverage detected