Exemple #1
0
string TwoClassStats::toString() const {

    string res = "";
    res.append(std::to_string(getTruePositive())).append(" ");
    res.append(std::to_string(getFalseNegative())).append(" ");
    res.append(std::to_string(getTrueNegative())).append(" ");
    res.append(std::to_string(getFalsePositive())).append(" ");
    res.append(std::to_string(getFalsePositiveRate())).append(" ");
    res.append(std::to_string(getTruePositiveRate())).append(" ");
    res.append(std::to_string(getPrecision())).append(" ");
    res.append(std::to_string(getRecall())).append(" ");
    res.append(std::to_string(getFMeasure())).append(" ");
    res.append(std::to_string(getFallout())).append(" ");

    return res;
}
	double getF1Measure() const {
		return getFMeasure(1);
	}