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

Method GetExternalFeatureType

catboost/libs/data/features_layout.cpp:275–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275EFeatureType TFeaturesLayout::GetExternalFeatureType(ui32 externalFeatureIdx) const {
276 Y_ASSERT(IsCorrectExternalFeatureIdx(externalFeatureIdx));
277 return ExternalIdxToMetaInfo[externalFeatureIdx].Type;
278}
279
280bool TFeaturesLayout::IsCorrectExternalFeatureIdx(ui32 externalFeatureIdx) const noexcept {
281 return (size_t)externalFeatureIdx < ExternalIdxToMetaInfo.size();

Callers 7

DoMainFunction · 0.80
InitCtrHelperMethod · 0.80
CalcFeatureInteractionFunction · 0.80
Y_UNIT_TESTFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected