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

Method GetGroupingLevel

catboost/cuda/gpu_data/feature_layout.cpp:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 double TBinarizationInfoProvider::GetGroupingLevel(ui32 featureId) const {
61 const ui32 binCount = Manager->GetBinCount(featureId);
62
63 //-x <= 128 does not use atomics and
64 // should be groupped by binarization level for best performance
65 //+1 bin cause 129 bins, 128 borders
66 if (binCount <= 129 || Manager->IsCtr(featureId)) {
67 return binCount * 1.0 / 256;
68 }
69
70 return 1.0 + binCount * 1.0 / 256;
71 }
72}

Callers 2

CreateFeaturesBlockMethod · 0.45
CreateFeaturesBlockMethod · 0.45

Calls 2

IsCtrMethod · 0.80
GetBinCountMethod · 0.45

Tested by

no test coverage detected