9 #ifndef PND_MVA_TOOLS_H 10 #define PND_MVA_TOOLS_H 41 explicit ClassifierOutPuts(std::string
const &Rlabel, std::string
const &Glabel,
float sgVal,
float bgVal,
float p)
87 explicit ROCPoints() : FP_rate(0.0), TP_rate(0.0), TN_rate(0.0), FN_rate(0.0), fp(0), tp(0), fn(0), tn(0), thr(0.0){};
99 explicit ROCPoints(
float const fpr,
float const tpr,
float const tnr,
float const fnr,
size_t const nfp,
size_t const ntp,
size_t const nfn,
size_t const ntn,
float const curThr)
100 : FP_rate(fpr), TP_rate(tpr), TN_rate(tnr), FN_rate(fnr), fp(nfp), tp(ntp), fn(nfn), tn(ntn), thr(curThr){};
106 ROCPoints(
ROCPoints const &ot) : FP_rate(ot.FP_rate), TP_rate(ot.TP_rate), TN_rate(ot.TN_rate), FN_rate(ot.FN_rate), fp(ot.fp), tp(ot.tp), fn(ot.fn), tn(ot.tn), thr(ot.thr){};
158 void Produce_ROC(std::vector<ClassifierOutPuts> &input, std::string
const &SigName, std::string
const &BgName,
size_t sigCnt,
size_t bgCnt, std::vector<ROCPoints> &Roc);
163 void print(std::vector<ClassifierOutPuts>
const &OutPutList);
169 void print(std::map<std::string, float>
const &ClsMapOut);
178 std::map<std::string, size_t> *
readEvents(
char const *infile, std::vector<std::string>
const &varNames, std::vector<std::string>
const &classNames,
179 std::vector<std::pair<std::string, std::vector<float> *>> &Outcontainer);
185 void printRoc(std::vector<ROCPoints>
const &RocList);
192 void WriteRocToFile(std::string
const &FileName, std::vector<ROCPoints>
const &RocList);
ClassifierOutPuts(ClassifierOutPuts const &ot)
ROCPoints(float const fpr, float const tpr, float const tnr, float const fnr, size_t const nfp, size_t const ntp, size_t const nfn, size_t const ntn, float const curThr)
virtual ~ClassifierOutPuts()
ClassifierOutPuts(std::string const &Rlabel, std::string const &Glabel, float sgVal, float bgVal, float p)
ClassifierOutPuts & operator=(ClassifierOutPuts const &ot)
bool operator<(ClassifierOutPuts const &ot) const
ROCPoints(ROCPoints const &ot)
bool operator>(ClassifierOutPuts const &ot) const
ROCPoints & operator=(ROCPoints const &ot)
friend F32vec4 operator==(const F32vec4 &a, const F32vec4 &b)