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

Method BindParserOpts

catboost/app/mode_roc.cpp:26–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 int ThreadCount;
25
26 void BindParserOpts(NLastGetopt::TOpts& parser) {
27 parser.AddLongOption('i', "eval-file", "eval result path")
28 .StoreResult(&EvalResultPath)
29 .RequiredArgument("PATH");
30 parser.AddLongOption('o', "output-path", "output result path")
31 .StoreResult(&OutputPath)
32 .RequiredArgument("PATH")
33 .DefaultValue("roc_data.tsv");
34 parser.AddLongOption('b', "label-border", "label binarization border")
35 .StoreResult(&LabelBinarizationBorder)
36 .RequiredArgument("FLOAT")
37 .DefaultValue(0.5);
38 parser.AddLongOption('T', "thread-count", "worker thread count (default: core count)")
39 .StoreResult(&ThreadCount)
40 .RequiredArgument("INT")
41 .DefaultValue(NSystemInfo::CachedNumberOfCpus());
42 }
43};
44
45static void ParseEvalResult(const TString& evalResultPath, TVector<double>* approxes, TVector<float>* labels) {

Callers 2

TModeParamsMethod · 0.45
mode_rocFunction · 0.45

Calls 1

DefaultValueMethod · 0.45

Tested by

no test coverage detected