Spaces:
Sleeping
Sleeping
matching precision and recall is inverted
Browse files- matching_series.py +2 -2
matching_series.py
CHANGED
@@ -217,8 +217,8 @@ class matching_series(evaluate.Metric):
|
|
217 |
f1_mse_features.append(f1_mse_f)
|
218 |
index_mse_features.append(index_mse_f)
|
219 |
|
220 |
-
|
221 |
-
|
222 |
matching_f1_f = 2 / (1 / matching_precision_f + 1 / matching_recall_f)
|
223 |
matching_precision_features.append(matching_precision_f)
|
224 |
matching_recall_features.append(matching_recall_f)
|
|
|
217 |
f1_mse_features.append(f1_mse_f)
|
218 |
index_mse_features.append(index_mse_f)
|
219 |
|
220 |
+
matching_recall_f = np.unique(best_match_f).size / len(best_match_f)
|
221 |
+
matching_precision_f = np.unique(best_match_inv_f).size / len(best_match_inv_f)
|
222 |
matching_f1_f = 2 / (1 / matching_precision_f + 1 / matching_recall_f)
|
223 |
matching_precision_features.append(matching_precision_f)
|
224 |
matching_recall_features.append(matching_recall_f)
|