Print true/false positive/negative stats
This commit is contained in:
parent
d767e2029b
commit
9f161adb2f
|
@ -276,9 +276,6 @@ def parse(stream, similarity: float, *, stats: bool = False, display_tqdm: bool
|
||||||
elif d < similarity and (doc_a, doc_b) not in candidate_pairs:
|
elif d < similarity and (doc_a, doc_b) not in candidate_pairs:
|
||||||
tn += 1
|
tn += 1
|
||||||
|
|
||||||
fp_rate = fp / (fp + tn)
|
|
||||||
tp_rate = tp / (tp + fn)
|
|
||||||
|
|
||||||
return tp, fp, tn, fn
|
return tp, fp, tn, fn
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue