| 78 | |
| 79 | |
| 80 | static bool NeedToCalcBorders( |
| 81 | const TFeaturesLayout& featuresLayoutForQuantization, |
| 82 | const TQuantizedFeaturesInfo& quantizedFeaturesInfo |
| 83 | ) { |
| 84 | bool needToCalcBorders = false; |
| 85 | featuresLayoutForQuantization.IterateOverAvailableFeatures<EFeatureType::Float>( |
| 86 | [&] (TFloatFeatureIdx floatFeatureIdx) { |
| 87 | if (!quantizedFeaturesInfo.HasBorders(floatFeatureIdx)) { |
| 88 | needToCalcBorders = true; |
| 89 | } |
| 90 | } |
| 91 | ); |
| 92 | |
| 93 | return needToCalcBorders; |
| 94 | } |
| 95 | |
| 96 | struct TSubsetIndexingForBuildBorders { |
| 97 | // for dense features, already composed with rawDataProvider's Subset, incremental |
no test coverage detected