| 71 | } |
| 72 | |
| 73 | int 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 | } |
nothing calls this directly
no test coverage detected