Open slowlyswimming opened 3 years ago
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
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
hahaha ,i think so.
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