DoctorSlimm commited on
Commit
f99f2a0
1 Parent(s): c55514d

add compute score

Browse files
Files changed (1) hide show
  1. kaushiks_criteria.py +4 -0
kaushiks_criteria.py CHANGED
@@ -176,7 +176,11 @@ class kaushiks_criteria(evaluate.Metric):
176
  references=proc_ds['references']['row_counts']
177
  )['exact_match']
178
 
 
 
 
179
  return {
 
180
  'exact_match_headers': exact_match_headers,
181
  'exact_match_sep_row': exact_match_sep_row,
182
  'exact_match_row_counts': exact_match_row_counts,
 
176
  references=proc_ds['references']['row_counts']
177
  )['exact_match']
178
 
179
+ # compute kaushiks_criteria
180
+ score = (exact_match_headers + exact_match_sep_row + exact_match_row_counts) / 3.0
181
+
182
  return {
183
+ 'kaushiks_criteria': score,
184
  'exact_match_headers': exact_match_headers,
185
  'exact_match_sep_row': exact_match_sep_row,
186
  'exact_match_row_counts': exact_match_row_counts,