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

Method EstimateMemoryForCloning

catboost/libs/data/external_columns.cpp:200–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers 1

GetSubsetWithSchedulingFunction · 0.45

Calls 7

GetIndexingMethod · 0.80
DefinedMethod · 0.45
GetNonDefaultSizeMethod · 0.45
GetTypeMethod · 0.45
sizeMethod · 0.45
GetBordersMethod · 0.45

Tested by

no test coverage detected