| 67 | } |
| 68 | |
| 69 | void ParseMetrics(const std::string& value, std::vector<std::string>* out_metric) { |
| 70 | std::unordered_set<std::string> metric_sets; |
| 71 | out_metric->clear(); |
| 72 | std::vector<std::string> metrics = Common::Split(value.c_str(), ','); |
| 73 | for (auto& met : metrics) { |
| 74 | auto type = ParseMetricAlias(met); |
| 75 | if (metric_sets.count(type) <= 0) { |
| 76 | out_metric->push_back(type); |
| 77 | metric_sets.insert(type); |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | void GetObjectiveType(const std::unordered_map<std::string, std::string>& params, std::string* objective) { |
| 83 | std::string value; |
no test coverage detected