ERPP-RMTPP
ERPP-RMTPP copied to clipboard
The calculation of precision and recall
In funcion clf_metric in util.py, it seems that the calculation of precision and recall is reversed?
if gold_count[i] != 0: prec += match_count / gold_count[i] pcnt += 1 if pred_count[i] != 0: recall += match_count / pred_count[i] rcnt += 1
Precision = true positive / predicted condition positive
Recall = true positive / condition positive
hahaha ,i think so.