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

Function mode_roc

catboost/app/mode_roc.cpp:73–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73int mode_roc(int argc, const char* argv[]) {
74 TRocParams params;
75 auto parser = NLastGetopt::TOpts();
76 parser.AddHelpOption();
77 params.BindParserOpts(parser);
78 parser.SetFreeArgsNum(0);
79 NLastGetopt::TOptsParseResult parserResult{&parser, argc, argv};
80
81 TVector<TVector<double>> approxes(1);
82 TVector<float> labels;
83 ParseEvalResult(params.EvalResultPath, &approxes[0], &labels);
84 PrepareTargetBinary(labels, params.LabelBinarizationBorder, &labels);
85
86 TVector<TConstArrayRef<float>> labelsParam(1, labels);
87 TRocCurve rocCurve(approxes, labelsParam, params.ThreadCount);
88 rocCurve.OutputRocCurve(params.OutputPath);
89 return 0;
90}

Callers

nothing calls this directly

Calls 5

ParseEvalResultFunction · 0.85
SetFreeArgsNumMethod · 0.80
OutputRocCurveMethod · 0.80
TOptsClass · 0.50
BindParserOptsMethod · 0.45

Tested by

no test coverage detected