Spaces:
Running
Running
precision and recall is inverted
Browse files- matching_series.py +2 -2
matching_series.py
CHANGED
@@ -190,8 +190,8 @@ class matching_series(evaluate.Metric):
|
|
190 |
f1_mse = 2 / (1 / precision_mse + 1 / recall_mse)
|
191 |
|
192 |
# matching precision, recall and f1
|
193 |
-
|
194 |
-
|
195 |
matching_f1 = 2 / (1 / matching_precision + 1 / matching_recall)
|
196 |
|
197 |
# take matching for each feature and compute metrics for them
|
|
|
190 |
f1_mse = 2 / (1 / precision_mse + 1 / recall_mse)
|
191 |
|
192 |
# matching precision, recall and f1
|
193 |
+
matching_recall = np.unique(best_match).size / len(best_match_inv)
|
194 |
+
matching_precision = np.unique(best_match_inv).size / len(best_match)
|
195 |
matching_f1 = 2 / (1 / matching_precision + 1 / matching_recall)
|
196 |
|
197 |
# take matching for each feature and compute metrics for them
|