Spaces:
Sleeping
Sleeping
DoctorSlimm
commited on
Commit
•
93fa864
1
Parent(s):
96a4701
round 2 dp
Browse files- kaushiks_criteria.py +6 -2
kaushiks_criteria.py
CHANGED
@@ -183,9 +183,13 @@ class kaushiks_criteria(evaluate.Metric):
|
|
183 |
# compute kaushiks_criteria
|
184 |
score = (exact_match_headers + exact_match_sep_row + exact_match_row_counts) / 3.0
|
185 |
|
186 |
-
return
|
|
|
187 |
'kaushiks_criteria': score,
|
188 |
'exact_match_headers': exact_match_headers,
|
189 |
'exact_match_sep_row': exact_match_sep_row,
|
190 |
'exact_match_row_counts': exact_match_row_counts,
|
191 |
-
}
|
|
|
|
|
|
|
|
183 |
# compute kaushiks_criteria
|
184 |
score = (exact_match_headers + exact_match_sep_row + exact_match_row_counts) / 3.0
|
185 |
|
186 |
+
# round and return
|
187 |
+
metrics = {
|
188 |
'kaushiks_criteria': score,
|
189 |
'exact_match_headers': exact_match_headers,
|
190 |
'exact_match_sep_row': exact_match_sep_row,
|
191 |
'exact_match_row_counts': exact_match_row_counts,
|
192 |
+
}
|
193 |
+
for key, value in metrics.items():
|
194 |
+
metrics[key] = round(value, 2)
|
195 |
+
return metrics
|