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
ff3adfe2
Commit
ff3adfe2
authored
Nov 29, 2020
by
Leo Gao
Browse files
Undo MNLI changes
parent
70e30a52
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
lm_eval/tasks/glue.py
lm_eval/tasks/glue.py
+0
-8
No files found.
lm_eval/tasks/glue.py
View file @
ff3adfe2
...
@@ -76,10 +76,6 @@ class MNLI(HFTask):
...
@@ -76,10 +76,6 @@ class MNLI(HFTask):
def
has_test_docs
(
self
):
def
has_test_docs
(
self
):
return
True
return
True
def
training_docs
(
self
):
if
self
.
has_validation_docs
():
return
self
.
data
[
"train_matched"
]
def
validation_docs
(
self
):
def
validation_docs
(
self
):
if
self
.
has_validation_docs
():
if
self
.
has_validation_docs
():
return
self
.
data
[
"validation_matched"
]
return
self
.
data
[
"validation_matched"
]
...
@@ -120,10 +116,6 @@ class MNLI(HFTask):
...
@@ -120,10 +116,6 @@ class MNLI(HFTask):
class
MNLIMismatched
(
MNLI
):
class
MNLIMismatched
(
MNLI
):
def
training_docs
(
self
):
if
self
.
has_validation_docs
():
return
self
.
data
[
"train_mismatched"
]
def
validation_docs
(
self
):
def
validation_docs
(
self
):
if
self
.
has_validation_docs
():
if
self
.
has_validation_docs
():
return
self
.
data
[
"validation_mismatched"
]
return
self
.
data
[
"validation_mismatched"
]
...
...
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