| 104 | } |
| 105 | |
| 106 | bool TBinarizedFeaturesManager::UseForOneHotEncoding(ui32 featureId) const { |
| 107 | auto uniqValuesOnLearn = GetUniqueValuesCounts(featureId).OnAll; // match for OnAll in TBinarizationInfoProvider::GetFoldsCount |
| 108 | return (uniqValuesOnLearn > 1) && (uniqValuesOnLearn <= CatFeatureOptions.OneHotMaxSize); |
| 109 | } |
| 110 | |
| 111 | bool TBinarizedFeaturesManager::UseForCtr(ui32 featureId) const { |
| 112 | if (IsEstimatedFeature(featureId)) { |
no outgoing calls