| 200 | } |
| 201 | |
| 202 | TSet<ECtrType> TBinarizedFeaturesManager::GetKnownSimpleCtrTypes() const { |
| 203 | TSet<ECtrType> result; |
| 204 | auto simpleCtrs = CreateGrouppedSimpleCtrConfigs(); |
| 205 | for (const auto& simpleCtr : simpleCtrs) { |
| 206 | result.insert(simpleCtr.first); |
| 207 | } |
| 208 | auto perFeatureCtrs = CreateGrouppedPerFeatureCtrs(); |
| 209 | for (const auto& perFeatureCtr : perFeatureCtrs) { |
| 210 | for (const auto& grouppedCtr : perFeatureCtr.second) { |
| 211 | result.insert(grouppedCtr.first); |
| 212 | } |
| 213 | } |
| 214 | return result; |
| 215 | } |
| 216 | |
| 217 | TVector<ui32> TBinarizedFeaturesManager::CreateSimpleCtrsForType(ui32 featureId, ECtrType type) { |
| 218 | CB_ENSURE(UseForCtr(featureId)); |
no test coverage detected