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

Method GetFeatureCount

catboost/libs/data/features_layout.cpp:352–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352ui32 TFeaturesLayout::GetFeatureCount(EFeatureType type) const noexcept {
353 switch (type) {
354 case EFeatureType::Float:
355 return GetFloatFeatureCount();
356 case EFeatureType::Categorical:
357 return GetCatFeatureCount();
358 case EFeatureType::Text:
359 return GetTextFeatureCount();
360 case EFeatureType::Embedding:
361 return GetEmbeddingFeatureCount();
362 }
363 Y_UNREACHABLE();
364}
365
366bool TFeaturesLayout::HasSparseFeatures(bool checkOnlyAvailable) const noexcept {
367 return FindIf(

Callers 15

StartMethod · 0.45
mode_eval_featureFunction · 0.45
Y_UNIT_TESTFunction · 0.45
CalcSageValuesFunction · 0.45
CalcShapInteractionFunction · 0.45
InitLeafWeightsFunction · 0.45
CalcAndOutputShapValuesFunction · 0.45

Calls 1

GetFloatFeatureCountFunction · 0.85

Tested by

no test coverage detected