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

Function LoadFullModelFromFile

catboost/libs/model_interface/c_api.cpp:286–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286CATBOOST_API bool LoadFullModelFromFile(ModelCalcerHandle* modelHandle, const char* filename) {
287 try {
288 *FULL_MODEL_PTR(modelHandle) = ReadModel(filename);
289 } catch (...) {
290 ErrorMessageHolder.Get().Message = CurrentExceptionMessage();
291 return false;
292 }
293
294 return true;
295}
296
297CATBOOST_API bool LoadFullModelFromBuffer(ModelCalcerHandle* modelHandle, const void* binaryBuffer, size_t binaryBufferSize) {
298 try {

Callers 6

TModelMethod · 0.85
LoadFullFromFileMethod · 0.85
loadMethod · 0.85
it_worksFunction · 0.85
ModelCalcerWrapperMethod · 0.85
InitFromFileMethod · 0.85

Calls 3

ReadModelFunction · 0.85
CurrentExceptionMessageFunction · 0.85
GetMethod · 0.45

Tested by 1

it_worksFunction · 0.68