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

Method IsCat

catboost/cuda/data/binarizations_manager.cpp:98–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97
98 bool TBinarizedFeaturesManager::IsCat(ui32 featureId) const {
99 if (FeatureManagerIdToDataProviderId.contains(featureId)) {
100 return DataProviderCatFeatureIdToFeatureManagerId.contains(FeatureManagerIdToDataProviderId.at(featureId));
101 } else {
102 return false;
103 }
104 }
105
106 bool TBinarizedFeaturesManager::UseForOneHotEncoding(ui32 featureId) const {
107 auto uniqValuesOnLearn = GetUniqueValuesCounts(featureId).OnAll; // match for OnAll in TBinarizationInfoProvider::GetFoldsCount

Callers 15

CreateOneHotSplitMethod · 0.80
GetRemappedIndexMethod · 0.80
ExtractProjectionMethod · 0.80
ConvertSplitsMethod · 0.80
WriteMethod · 0.80
GetFoldsCountMethod · 0.80
IsEffectivelyOneHotMethod · 0.80
CheckDataSetFunction · 0.80
BuildTreeCtrSplitCpuMethod · 0.80
SplitMethod · 0.80
AddFeatureMethod · 0.80

Calls 2

containsMethod · 0.45
atMethod · 0.45

Tested by 7

CheckDataSetFunction · 0.64
BuildTreeCtrSplitCpuMethod · 0.64
SplitMethod · 0.64
TreeSearcherTestFunction · 0.64
RunComputeTestFunction · 0.64