lvwerra HF staff commited on
Commit
76f97bd
1 Parent(s): 34d5c3d

Update Space (evaluate main: 61526a71)

Browse files
Files changed (1) hide show
  1. exact_match.py +1 -1
exact_match.py CHANGED
@@ -61,5 +61,5 @@ class ExactMatch(evaluate.EvaluationModule):
61
  )
62
 
63
  def _compute(self, predictions1, predictions2):
64
- score_list = predictions1 == predictions2
65
  return {"exact_match": np.mean(score_list)}
 
61
  )
62
 
63
  def _compute(self, predictions1, predictions2):
64
+ score_list = [p1 == p2 for p1, p2 in zip(predictions1, predictions2)]
65
  return {"exact_match": np.mean(score_list)}