| 96 | } |
| 97 | |
| 98 | bool TBinarizedFeaturesManager::IsCat(ui32 featureId) const { |
| 99 | if (FeatureManagerIdToDataProviderId.contains(featureId)) { |
| 100 | return DataProviderCatFeatureIdToFeatureManagerId.contains(FeatureManagerIdToDataProviderId.at(featureId)); |
| 101 | } else { |
| 102 | return false; |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | bool TBinarizedFeaturesManager::UseForOneHotEncoding(ui32 featureId) const { |
| 107 | auto uniqValuesOnLearn = GetUniqueValuesCounts(featureId).OnAll; // match for OnAll in TBinarizationInfoProvider::GetFoldsCount |