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
10492f4b
Commit
10492f4b
authored
Apr 28, 2022
by
jon-tow
Browse files
Add `axg` and `axb` to `super_glue`
parent
9cd70235
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
lm_eval/tasks/superglue.py
lm_eval/tasks/superglue.py
+36
-0
No files found.
lm_eval/tasks/superglue.py
View file @
10492f4b
...
@@ -305,3 +305,39 @@ class SGWinogradSchemaChallenge(PromptSourceTask):
...
@@ -305,3 +305,39 @@ class SGWinogradSchemaChallenge(PromptSourceTask):
def
aggregation
(
self
):
def
aggregation
(
self
):
return
{
"acc"
:
mean
}
return
{
"acc"
:
mean
}
class
WinogenderSchemaDiagnostics
(
PromptSourceTask
):
VERSION
=
0
DATASET_PATH
=
"super_glue"
DATASET_NAME
=
"axg"
def
has_training_docs
(
self
):
return
False
def
has_validation_docs
(
self
):
return
False
def
has_test_docs
(
self
):
return
True
def
test_docs
(
self
):
return
self
.
dataset
[
"test"
]
class
BroadcoverageDiagnostics
(
PromptSourceTask
):
VERSION
=
0
DATASET_PATH
=
"super_glue"
DATASET_NAME
=
"axb"
def
has_training_docs
(
self
):
return
False
def
has_validation_docs
(
self
):
return
False
def
has_test_docs
(
self
):
return
True
def
test_docs
(
self
):
return
self
.
dataset
[
"test"
]
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