Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
13ed1343
Unverified
Commit
13ed1343
authored
Jun 24, 2022
by
Stella Biderman
Committed by
GitHub
Jun 24, 2022
Browse files
Merge pull request #333 from OpenGPTX/squad_fix_keyerror
Fix key access in squad evaluation metrics
parents
4645584f
1a153185
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/tasks/squad.py
lm_eval/tasks/squad.py
+1
-1
No files found.
lm_eval/tasks/squad.py
View file @
13ed1343
...
...
@@ -40,7 +40,7 @@ def _squad_metric(predictions, references):
def
_squad_agg
(
key
,
items
):
predictions
,
references
=
zip
(
*
items
)
return
_squad_metric
(
predictions
=
predictions
,
references
=
references
)
[
key
]
return
_squad_metric
(
predictions
=
predictions
,
references
=
references
)
.
get
(
key
,
0
)
class
SQuAD2
(
Task
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment