| 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) { |
no test coverage detected