| 101 | } |
| 102 | |
| 103 | static 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 | |
| 111 | static void CheckWeights(const TWeights<float>& docWeights, const TFullModel& model) { |
| 112 | if (model.ModelTrees->GetModelTreeData()->GetLeafWeights().empty()) { |
no test coverage detected