MCPcopy Create free account
hub / github.com/catboost/catboost / UseForOneHotEncoding

Method UseForOneHotEncoding

catboost/cuda/data/binarizations_manager.cpp:106–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)) {

Callers 3

WriteMethod · 0.80
GetLearnFeatureIdsMethod · 0.80
TestTreeBuilderFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestTreeBuilderFunction · 0.64