loubnabnl HF staff commited on
Commit
f01eda0
1 Parent(s): 2b593f3

add debug parameter

Browse files
Files changed (1) hide show
  1. apps_metric.py +2 -2
apps_metric.py CHANGED
@@ -75,7 +75,7 @@ class apps_metric(evaluate.EvaluationModule):
75
 
76
 
77
 
78
- def _compute(self, predictions, k_list=[1, 10, 100], count_errors=True, level="all"):
79
  """Returns the scores"""
80
- metrics = compute_metrics(predictions, k_list=k_list, count_errors=count_errors, level=level)
81
  return metrics
 
75
 
76
 
77
 
78
+ def _compute(self, predictions, k_list=[1, 10, 100], count_errors=True, level="all", debug=False):
79
  """Returns the scores"""
80
+ metrics = compute_metrics(predictions, k_list=k_list, count_errors=count_errors, level=level, debug=debug)
81
  return metrics