| 2156 | |
| 2157 | |
| 2158 | static TFeaturesLayoutPtr InitFeaturesLayoutForQuantizedData( |
| 2159 | const TFeaturesLayout& rawObjectsDataLayout, |
| 2160 | const TFeaturesLayout& quantizedFeaturesInfoLayout |
| 2161 | ) { |
| 2162 | CheckCompatibleForQuantize( |
| 2163 | rawObjectsDataLayout, |
| 2164 | quantizedFeaturesInfoLayout, |
| 2165 | "data to quantize" |
| 2166 | ); |
| 2167 | |
| 2168 | TFeaturesLayoutPtr featuresLayout = MakeIntrusive<TFeaturesLayout>(rawObjectsDataLayout); |
| 2169 | |
| 2170 | AddIgnoredFeatures(quantizedFeaturesInfoLayout, featuresLayout.Get()); |
| 2171 | |
| 2172 | return featuresLayout; |
| 2173 | } |
| 2174 | |
| 2175 | |
| 2176 | // this is a helper class needed for friend declarations |
no test coverage detected