10 #ifndef META_CONFUSION_MATRIX_H_
11 #define META_CONFUSION_MATRIX_H_
38 void add(
const class_label& predicted,
const class_label& actual,
46 void print_stats(std::ostream& out = std::cout)
const;
53 void print(std::ostream& out = std::cout)
const;
74 typedef std::unordered_map<std::pair<class_label, class_label>, size_t,
124 double& prec,
double& rec,
double& f1,
137 std::unordered_map<class_label, size_t>
counts_;