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

Function CalcCoreModelCheckSum

catboost/private/libs/algo/learn_context.cpp:206–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204
205
206static ui32 CalcCoreModelCheckSum(const TFullModel& model) {
207 const auto& trees = *model.ModelTrees;
208
209 return UpdateCheckSum(
210 ui32(0),
211 trees.GetDimensionsCount(),
212 trees.GetModelTreeData()->GetTreeSplits(),
213 trees.GetModelTreeData()->GetTreeSizes(),
214 trees.GetModelTreeData()->GetTreeStartOffsets(),
215 trees.GetModelTreeData()->GetNonSymmetricStepNodes(),
216 trees.GetModelTreeData()->GetNonSymmetricNodeIdToLeafId(),
217 trees.GetModelTreeData()->GetLeafValues(),
218 trees.GetCatFeatures(),
219 trees.GetFloatFeatures(),
220 trees.GetOneHotFeatures(),
221 trees.GetCtrFeatures()
222 );
223}
224
225
226TLearnContext::TLearnContext(

Callers 1

SetSeparateInitModelMethod · 0.85

Calls 12

UpdateCheckSumFunction · 0.85
GetTreeSplitsMethod · 0.80
GetTreeSizesMethod · 0.80
GetTreeStartOffsetsMethod · 0.80
GetCatFeaturesMethod · 0.80
GetFloatFeaturesMethod · 0.80
GetCtrFeaturesMethod · 0.80
GetDimensionsCountMethod · 0.45
GetLeafValuesMethod · 0.45
GetOneHotFeaturesMethod · 0.45

Tested by

no test coverage detected