| 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 | |
| 45 | static void ParseEvalResult(const TString& evalResultPath, TVector<double>* approxes, TVector<float>* labels) { |
no test coverage detected