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

Function SaveLoadCoreML

catboost/libs/model/ut/leaf_weights_ut.cpp:103–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103static TFullModel SaveLoadCoreML(const TFullModel& trainedModel) {
104 TStringStream strStream;
105 trainedModel.Save(&strStream);
106 ExportModel(trainedModel, "model.coreml", EModelType::AppleCoreML);
107 TFullModel deserializedModel = ReadModel("model.coreml", EModelType::AppleCoreML);
108 return deserializedModel;
109}
110
111static void CheckWeights(const TWeights<float>& docWeights, const TFullModel& model) {
112 if (model.ModelTrees->GetModelTreeData()->GetLeafWeights().empty()) {

Callers 1

RunTestWithParamsFunction · 0.85

Calls 3

ExportModelFunction · 0.85
ReadModelFunction · 0.85
SaveMethod · 0.45

Tested by

no test coverage detected