facat commited on
Commit
132574a
1 Parent(s): c6f1343

fix logging

Browse files
Files changed (1) hide show
  1. tasks.py +2 -2
tasks.py CHANGED
@@ -154,7 +154,7 @@ class Task:
154
  results = self.metric._compute(
155
  responses=self.outputs, references=self.dataset[self.label_column]
156
  )
157
- logging.info(f"{self.name}:{results}")
158
  return results
159
 
160
  # @cache
@@ -266,7 +266,7 @@ class Metrics:
266
  try:
267
  from math_equivalence import is_equiv
268
  except ImportError as e:
269
- logging.warning(
270
  "math_equivalence not installed, pip install git+https://github.com/hendrycks/math.git"
271
  )
272
  raise e
 
154
  results = self.metric._compute(
155
  responses=self.outputs, references=self.dataset[self.label_column]
156
  )
157
+ # logging.info(f"{self.name}:{results}")
158
  return results
159
 
160
  # @cache
 
266
  try:
267
  from math_equivalence import is_equiv
268
  except ImportError as e:
269
+ logging.error(
270
  "math_equivalence not installed, pip install git+https://github.com/hendrycks/math.git"
271
  )
272
  raise e