| 232 | } |
| 233 | |
| 234 | bool IsOneHot(ui32 featureId) const { |
| 235 | CB_ENSURE(HasFeature(featureId)); |
| 236 | if (HasFeatures() && GetFeatures().HasFeature(featureId)) { |
| 237 | return GetFeatures().IsOneHot(featureId); |
| 238 | } else if (HasPermutationDependentFeatures()) { |
| 239 | return GetPermutationFeatures().IsOneHot(featureId); |
| 240 | } else { |
| 241 | CB_ENSURE(false); |
| 242 | } |
| 243 | Y_UNREACHABLE(); |
| 244 | } |
| 245 | |
| 246 | const NCB::TTrainingDataProvider& GetDataProvider() const { |
| 247 | return DataProvider; |
no test coverage detected