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

Method MergeCatFeaturesHashToString

catboost/libs/data/objects.cpp:2232–2245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2230
2231
2232THashMap<ui32, TString> NCB::MergeCatFeaturesHashToString(const NCB::TObjectsDataProvider& objectsData) {
2233 THashMap<ui32, TString> result;
2234
2235 for (auto catFeatureIdx : xrange(objectsData.GetFeaturesLayout()->GetCatFeatureCount())) {
2236 const auto& perFeatureCatFeaturesHashToString
2237 = objectsData.GetCatFeaturesHashToString(catFeatureIdx);
2238 for (const auto& [hashedCatValue, catValueString] : perFeatureCatFeaturesHashToString) {
2239 // TODO(kirillovs): remove this cast, needed only for MSVC 14.12 compiler bug
2240 result[(ui32)hashedCatValue] = catValueString;
2241 }
2242 }
2243
2244 return result;
2245}

Callers

nothing calls this directly

Calls 3

xrangeFunction · 0.85
GetCatFeatureCountMethod · 0.80
GetFeaturesLayoutMethod · 0.45

Tested by

no test coverage detected