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

Function NeedToCalcBorders

catboost/libs/data/quantization.cpp:80–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

GetSubsetForBuildBordersFunction · 0.85

Calls 1

HasBordersMethod · 0.45

Tested by

no test coverage detected