class_docstr: Accuracy metric for the MATH dataset.
class_docstr_tok: ["Accuracy","metric","for","the","MATH","dataset","."]
docstr: Returns the scores
docstr_tok: ["Returns","the","scores"]
code: def _compute(self, predictions, references):
      """Returns the scores"""
      n_correct = 0.0
      for i, j in zip(predictions, references):
          n_correct += 1.0 if math_equivalence.is_equiv(i, j) else 0.0
      accuracy = n_correct / len(predictions)
      return {
          "accuracy": accuracy,
      }
  
imports: import math_equivalence
  import datasets
label_desc: Use image node_id 2 for calling the CompetitionMathMetric obj's underlying member method code with example usage: obj._compute(predictions, references) and returns: dict