| 198 | ); |
| 199 | } |
| 200 | ui64 TExternalFloatSparseValuesHolder::EstimateMemoryForCloning( |
| 201 | const TCloningParams& cloningParams |
| 202 | ) const { |
| 203 | const auto floatFeatureIdx = QuantizedFeaturesInfo->GetPerTypeFeatureIdx<EFeatureType::Float>( |
| 204 | *this |
| 205 | ); |
| 206 | CB_ENSURE_INTERNAL(cloningParams.InvertedSubsetIndexing.Defined(), "InvertedSubsetIndexing should be defined"); |
| 207 | return EstimateCpuRamLimitForCreateQuantizedSparseSubset<ui8>( |
| 208 | **cloningParams.InvertedSubsetIndexing, |
| 209 | SrcData.GetNonDefaultSize(), |
| 210 | SrcData.GetIndexing()->GetType(), |
| 211 | CalcHistogramWidthForBorders(QuantizedFeaturesInfo->GetBorders(floatFeatureIdx).size()) |
| 212 | ); |
| 213 | } |
| 214 | |
| 215 | THolder<IFeatureValuesHolder> TExternalFloatSparseValuesHolder::CloneWithNewSubsetIndexing( |
| 216 | const TCloningParams& cloningParams, |
no test coverage detected