woshiyyya / ERPP-RMTPP

A pytorch implementation of ERPP and RMTPP on ATM maintenance dataset.
55 stars 22 forks source link

The calculation of precision and recall #5

Open slowlyswimming opened 3 years ago

slowlyswimming commented 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

lbq8942 commented 1 year ago

hahaha ,i think so.