Skip to content

Commit

Permalink
Add an accuracy column for open submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
tjablin authored and psyhtest committed Mar 23, 2022
1 parent 03596fb commit ca18f5c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions tools/submission/generate-final-report.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def main():
indices['open'] = indices['closed'].copy()
indices['closed'].append('Details')
indices['open'].append('UsedModel')
indices['open'].append('Accuracy')
indices['open'].append('Details')
columns = [
'Model',
Expand Down
21 changes: 14 additions & 7 deletions tools/submission/submission-checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,13 +612,20 @@
}

ACC_PATTERN = {
"acc": r"^accuracy=([\d\.]+).*",
"AUC": r"^AUC=([\d\.]+).*",
"mAP": r"^mAP=([\d\.]+).*",
"bleu": r"^BLEU\:\s*([\d\.]+).*",
"F1": r"^{\"exact_match\"\:\s*[\d\.]+,\s*\"f1\"\:\s*([\d\.]+)}",
"WER": r"Word Error Rate\:.*, accuracy=([0-9\.]+)%",
"DICE": r"Accuracy\:\s*mean\s*=\s*([\d\.]+).*",
"acc":
r"^accuracy=([\d\.]+).*",
"AUC":
r"^AUC=([\d\.]+).*",
"mAP":
r"^mAP=([\d\.]+).*",
"bleu":
r"^BLEU\:\s*([\d\.]+).*",
"F1":
r"^{[\"\']exact_match[\"\']\:\s*[\d\.]+,\s*[\"\']f1[\"\']\:\s*([\d\.]+)}",
"WER":
r"Word Error Rate\:.*, accuracy=([0-9\.]+)%",
"DICE":
r"Accuracy\:\s*mean\s*=\s*([\d\.]+).*",
}

SYSTEM_DESC_REQUIRED_FIELDS = [
Expand Down

0 comments on commit ca18f5c

Please sign in to comment.