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

Function HasPermutationFeatures

catboost/cuda/train_lib/train.cpp:86–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 inline bool HasPermutationFeatures(const TBinarizedFeaturesManager& featuresManager) {
87 for (auto catFeature : featuresManager.GetCatFeatureIds()) {
88 if (featuresManager.UseForCtr(catFeature) || featuresManager.UseForTreeCtr(catFeature)) {
89 return true;
90 }
91 }
92 for (auto estimatedFeatureId : featuresManager.GetEstimatedFeatureIds()) {
93 if (featuresManager.GetEstimatedFeature(estimatedFeatureId).EstimatorId.IsOnline) {
94 return true;
95 }
96 }
97 return false;
98 }
99
100 inline void UpdateGpuSpecificDefaults(NCatboostOptions::TCatBoostOptions& options,
101 TBinarizedFeaturesManager& featuresManager) {

Callers 1

Calls 5

GetCatFeatureIdsMethod · 0.80
UseForCtrMethod · 0.80
UseForTreeCtrMethod · 0.80
GetEstimatedFeatureMethod · 0.80

Tested by

no test coverage detected