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
31a8b83e
Commit
31a8b83e
authored
Feb 12, 2023
by
Niklas Muennighoff
Browse files
Add splits
parent
2aed1256
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lm_eval/tasks/babi.py
lm_eval/tasks/babi.py
+4
-4
No files found.
lm_eval/tasks/babi.py
View file @
31a8b83e
...
...
@@ -16,10 +16,10 @@ class Babi(Task):
DATASET_NAME
=
None
def
has_training_docs
(
self
):
return
Fals
e
return
Tru
e
def
has_validation_docs
(
self
):
return
Fals
e
return
Tru
e
def
has_test_docs
(
self
):
return
True
...
...
@@ -34,7 +34,7 @@ class Babi(Task):
def
test_docs
(
self
):
if
self
.
has_test_docs
():
return
self
.
dataset
[
"t
rain
"
]
return
self
.
dataset
[
"t
est
"
]
def
doc_to_text
(
self
,
doc
):
return
(
...
...
@@ -42,7 +42,7 @@ class Babi(Task):
)
def
should_decontaminate
(
self
):
return
False
#
#
TODO Necessary?
return
False
# TODO Necessary?
def
doc_to_decontamination_query
(
self
,
doc
):
return
doc
[
'passage'
]
+
doc
[
'question'
]
...
...
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