bowdbeg commited on
Commit
525a834
·
1 Parent(s): ddd82d3

matching precision and recall is inverted

Browse files
Files changed (1) hide show
  1. 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
- matching_precision_f = np.unique(best_match_f).size / len(best_match_f)
221
- matching_recall_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)
 
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)