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

Function GetOptions

catboost/app/mode_dump_options.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include <util/ysaveload.h>
14
15static NJson::TJsonValue GetOptions(const TString& snapshotPath) {
16 TFileInput snapshotFile(snapshotPath);
17 TString label;
18 TString optionsStr;
19 ::LoadMany(&snapshotFile, label, optionsStr);
20 NJson::TJsonValue options;
21 CB_ENSURE(ReadJsonTree(optionsStr, &options), "Unable to parse options from snapshot");
22 return options;
23}
24
25int mode_dump_options(int argc, const char* argv[]) {
26 auto parser = NLastGetopt::TOpts();

Callers 2

RunMethod · 0.85
mode_dump_optionsFunction · 0.85

Calls 2

LoadManyFunction · 0.85
ReadJsonTreeFunction · 0.50

Tested by

no test coverage detected