| 39 | } |
| 40 | |
| 41 | std::vector<std::vector<int>> NoGroup( |
| 42 | const std::vector<int>& used_features) { |
| 43 | std::vector<std::vector<int>> features_in_group; |
| 44 | features_in_group.resize(used_features.size()); |
| 45 | for (size_t i = 0; i < used_features.size(); ++i) { |
| 46 | features_in_group[i].emplace_back(used_features[i]); |
| 47 | } |
| 48 | return features_in_group; |
| 49 | } |
| 50 | |
| 51 | int GetConfilctCount(const std::vector<bool>& mark, const int* indices, int num_indices, int max_cnt) { |
| 52 | int ret = 0; |