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

Function CastToSolidTree

catboost/libs/model/model.cpp:137–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135};
136
137static TSolidModelTree* CastToSolidTree(const TModelTrees& trees) {
138 auto ptr = dynamic_cast<TSolidModelTree*>(trees.GetModelTreeData().Get());
139 CB_ENSURE(ptr, "Only solid models are modifiable");
140 return ptr;
141}
142
143struct TOpaqueModelTree : IModelTreeData {
144 TConstArrayRef<int> GetTreeSplits() const override;

Callers 8

AddBinTreeMethod · 0.85
ClearLeafWeightsMethod · 0.85
AddTreeSplitMethod · 0.85
AddTreeSizeMethod · 0.85
AddLeafValueMethod · 0.85
AddLeafWeightMethod · 0.85
FBDeserializeOwningMethod · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected