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

Function AddIgnoredFeatures

catboost/libs/data/quantization.cpp:2144–2155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2142 }
2143
2144 static void AddIgnoredFeatures(const TFeaturesLayout& addFromLayout, TFeaturesLayout* updatedLayout) {
2145 auto featuresIntersectionSize = Min(
2146 addFromLayout.GetExternalFeatureCount(),
2147 updatedLayout->GetExternalFeatureCount()
2148 );
2149
2150 for (auto i : xrange(featuresIntersectionSize)) {
2151 if (addFromLayout.GetExternalFeaturesMetaInfo()[i].IsIgnored) {
2152 updatedLayout->IgnoreExternalFeature(i);
2153 }
2154 }
2155 }
2156
2157
2158 static TFeaturesLayoutPtr InitFeaturesLayoutForQuantizedData(

Callers 2

DoMethod · 0.85

Calls 5

xrangeFunction · 0.85
IgnoreExternalFeatureMethod · 0.80
MinFunction · 0.50

Tested by

no test coverage detected