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

Function GetFeatureCount

catboost/libs/data/loader.cpp:308–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306 }
307
308 static size_t GetFeatureCount(TConstArrayRef<TColumn> columns) {
309 size_t featureCount = 0;
310
311 for (auto column : columns) {
312 if (IsFactorColumn(column.Type)) {
313 ++featureCount;
314 } else if (column.Type == EColumn::Features) {
315 featureCount += GetFeatureCount(column.SubColumns);
316 }
317 }
318
319 return featureCount;
320 }
321
322
323 TVector<TString> GetFeatureNames(

Callers 5

GetFeatureNamesFunction · 0.85
ValidateMethod · 0.85
GetFeatureCountMethod · 0.85
GetCtrWeightsMethod · 0.85

Calls 1

IsFactorColumnFunction · 0.85

Tested by

no test coverage detected