| 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 | } |
no test coverage detected