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

Method HasSparseFeatures

catboost/libs/data/features_layout.cpp:366–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366bool TFeaturesLayout::HasSparseFeatures(bool checkOnlyAvailable) const noexcept {
367 return FindIf(
368 ExternalIdxToMetaInfo,
369 [=] (const TFeatureMetaInfo& metaInfo) {
370 return (!checkOnlyAvailable || metaInfo.IsAvailable) && metaInfo.IsSparse;
371 }
372 );
373}
374
375void TFeaturesLayout::IgnoreExternalFeature(ui32 externalFeatureIdx) noexcept {
376 if (externalFeatureIdx >= ExternalIdxToMetaInfo.size()) {

Callers 1

GetSubsetImplMethod · 0.45

Calls 1

FindIfFunction · 0.85

Tested by

no test coverage detected