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

Method LoadFullFromFile

catboost/node-package/src/model.cpp:72–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71
72void TModel::LoadFullFromFile(const Napi::CallbackInfo& info) {
73 Napi::Env env = info.Env();
74
75 if (!NHelper::Check(env, info.Length() >= 1, "Wrong number of arguments") ||
76 !NHelper::Check(env, info[0].IsString(), "File name string is required"))
77 {
78 return;
79 }
80
81 NHelper::CheckNotNullHandle(env, this->Handle);
82 const bool status = LoadFullModelFromFile(
83 this->Handle,
84 info[0].As<Napi::String>().Utf8Value().c_str()
85 );
86 NHelper::CheckStatus(env, status);
87 if (status) {
88 this->ModelLoaded = true;
89 }
90}
91
92// Set model predictions postprocessing type.
93void TModel::SetPredictionType(const Napi::CallbackInfo& info) {

Callers

nothing calls this directly

Calls 7

CheckNotNullHandleFunction · 0.85
LoadFullModelFromFileFunction · 0.85
CheckStatusFunction · 0.85
CheckFunction · 0.70
LengthMethod · 0.45
IsStringMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected