| 144 | |
| 145 | |
| 146 | TVector<bool> GetFeaturesUsedInModel(const TFullModel& model) { |
| 147 | TVector<bool> result(model.ModelTrees->GetFlatFeatureVectorExpectedSize(), false); |
| 148 | |
| 149 | for (const auto& floatFeature : model.ModelTrees->GetFloatFeatures()) { |
| 150 | if (floatFeature.UsedInModel()) { |
| 151 | result[floatFeature.Position.FlatIndex] = true; |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | for (const auto& catFeature : model.ModelTrees->GetCatFeatures()) { |
| 156 | if (catFeature.UsedInModel()) { |
| 157 | result[catFeature.Position.FlatIndex] = true; |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | return result; |
| 162 | } |
| 163 | |
| 164 | |
| 165 | int DoMain(int argc, char** argv) { |
no test coverage detected