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

Method GetExternalFeatureIds

catboost/libs/data/features_layout.cpp:439–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437
438
439TVector<TString> TFeaturesLayout::GetExternalFeatureIds() const {
440 TVector<TString> result;
441 result.reserve(ExternalIdxToMetaInfo.size());
442 for (const auto& metaInfo : ExternalIdxToMetaInfo) {
443 result.push_back(metaInfo.Name);
444 }
445 return result;
446}
447
448void TFeaturesLayout::SetExternalFeatureIds(TConstArrayRef<TString> featureIds) {
449 CheckDataSize(featureIds.size(), ExternalIdxToMetaInfo.size(), "feature names", false, "feature count");

Callers 5

ExportFullModelFunction · 0.80
Y_UNIT_TESTFunction · 0.80
SelectFeaturesFunction · 0.80
CatBoostOutputModel_RFunction · 0.80

Calls 3

reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected