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
2aed1256
Commit
2aed1256
authored
Feb 12, 2023
by
Niklas Muennighoff
Browse files
Fix eval
parent
5ef6ea82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/tasks/babi.py
lm_eval/tasks/babi.py
+1
-1
No files found.
lm_eval/tasks/babi.py
View file @
2aed1256
...
@@ -74,7 +74,7 @@ class Babi(Task):
...
@@ -74,7 +74,7 @@ class Babi(Task):
The results of the requests created in construct_requests.
The results of the requests created in construct_requests.
"""
"""
gold
=
doc
[
"answer"
]
gold
=
doc
[
"answer"
]
pred
=
gold
==
results
pred
=
gold
.
strip
()
==
results
[
0
].
strip
()
return
{
"em"
:
pred
}
return
{
"em"
:
pred
}
def
aggregation
(
self
):
def
aggregation
(
self
):
...
...
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