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
41a8b582
Commit
41a8b582
authored
Feb 21, 2021
by
Jon Tow
Browse files
Undo formatting
parent
e4d852a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
lm_eval/tasks/drop.py
lm_eval/tasks/drop.py
+5
-7
No files found.
lm_eval/tasks/drop.py
View file @
41a8b582
...
@@ -93,7 +93,7 @@ class DROP(Task):
...
@@ -93,7 +93,7 @@ class DROP(Task):
dict where keys are the names of submetrics and values are the values of
dict where keys are the names of submetrics and values are the values of
the metric for that one document
the metric for that one document
:param
:param
doc:
The document as returned from training_docs, validation_docs, or test_docs.
The document as returned from training_docs, validation_docs, or test_docs.
:param results:
:param results:
The results of the requests created in construct_requests.
The results of the requests created in construct_requests.
...
@@ -161,9 +161,8 @@ class DROP(Task):
...
@@ -161,9 +161,8 @@ class DROP(Task):
def
aggregation
(
self
):
def
aggregation
(
self
):
"""
"""
:returns: {str: [float] -> float}
:returns: {str: [float] -> float}
A dictionary where keys are the names of submetrics and values are
A dictionary where keys are the names of submetrics and values are
A dictionary where keys are the names of submetrics and values are
functions that aggregate a list of metrics
functions that aggregate a list of metrics
"""
"""
return
{
return
{
"em"
:
mean
,
"em"
:
mean
,
...
@@ -173,9 +172,8 @@ class DROP(Task):
...
@@ -173,9 +172,8 @@ class DROP(Task):
def
higher_is_better
(
self
):
def
higher_is_better
(
self
):
"""
"""
:returns: {str: bool}
:returns: {str: bool}
A dictionary where keys are the names of submetrics and values are
A dictionary where keys are the names of submetrics and values are
A dictionary where keys are the names of submetrics and values are
whether a higher value of the submetric is better
whether a higher value of the submetric is better
"""
"""
return
{
return
{
"em"
:
True
,
"em"
:
True
,
...
...
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