Spaces:
Sleeping
Sleeping
Update compute_score.py
Browse files- compute_score.py +1 -1
compute_score.py
CHANGED
@@ -91,7 +91,7 @@ def compute_score(dataset, predictions):
|
|
91 |
if recall_temp + precision_temp == 0:
|
92 |
f1_temp = 0
|
93 |
else:
|
94 |
-
f1_temp = (2 *
|
95 |
|
96 |
f1 += f1_temp
|
97 |
recall += recall_temp
|
|
|
91 |
if recall_temp + precision_temp == 0:
|
92 |
f1_temp = 0
|
93 |
else:
|
94 |
+
f1_temp = (2 * precision_temp * recall_temp) / (precision_temp + recall_temp)
|
95 |
|
96 |
f1 += f1_temp
|
97 |
recall += recall_temp
|