| 215 | } |
| 216 | |
| 217 | TVector<ui32> TBinarizedFeaturesManager::CreateSimpleCtrsForType(ui32 featureId, ECtrType type) { |
| 218 | CB_ENSURE(UseForCtr(featureId)); |
| 219 | TSet<ui32> resultIds; |
| 220 | |
| 221 | if (HasPerFeatureCtr(featureId)) { |
| 222 | auto perFeatureCtrs = CreateGrouppedPerFeatureCtr(featureId); |
| 223 | if (perFeatureCtrs.contains(type)) { |
| 224 | CreateSimpleCtrs(featureId, perFeatureCtrs.at(type), &resultIds); |
| 225 | } |
| 226 | } else { |
| 227 | auto simpleCtrConfigs = CreateGrouppedSimpleCtrConfigs(); |
| 228 | CB_ENSURE(simpleCtrConfigs.at(type), "Simple ctr type is not enabled " << type); |
| 229 | CreateSimpleCtrs(featureId, simpleCtrConfigs.at(type), &resultIds); |
| 230 | } |
| 231 | |
| 232 | return TVector<ui32>(resultIds.begin(), resultIds.end()); |
| 233 | } |
| 234 | |
| 235 | TVector<ui32> TBinarizedFeaturesManager::GetAllSimpleCtrs() const { |
| 236 | TVector<ui32> ids; |
no test coverage detected