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
e3769082
"tests/fixtures/custom_pipeline/what_ever.py" did not exist on "6b275fca49e826f60f8962b829f4a09ecd1e0810"
Commit
e3769082
authored
Mar 22, 2021
by
Jonathan Tow
Browse files
Include `auxiliary_train` and all `dev` sets in `training_docs`
parent
364e54d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lm_eval/tasks/hendrycks_test.py
lm_eval/tasks/hendrycks_test.py
+5
-2
No files found.
lm_eval/tasks/hendrycks_test.py
View file @
e3769082
...
@@ -85,8 +85,11 @@ class GeneralHendrycksTest(MultipleChoiceTask):
...
@@ -85,8 +85,11 @@ class GeneralHendrycksTest(MultipleChoiceTask):
return
(
self
.
_convert_standard
(
doc
)
for
doc
in
reader
)
return
(
self
.
_convert_standard
(
doc
)
for
doc
in
reader
)
def
training_docs
(
self
):
def
training_docs
(
self
):
filename
=
self
.
DATASET_PATH
/
"dev"
/
f
"
{
self
.
subject
}
_dev.csv"
docs
=
[]
return
self
.
_load_docs
(
filename
)
for
train_dir
in
[
"auxiliary_train"
,
"dev"
]:
for
f
in
(
self
.
DATASET_PATH
/
train_dir
).
iterdir
():
docs
.
extend
(
self
.
_load_docs
(
f
))
return
docs
def
validation_docs
(
self
):
def
validation_docs
(
self
):
filename
=
self
.
DATASET_PATH
/
"val"
/
f
"
{
self
.
subject
}
_val.csv"
filename
=
self
.
DATASET_PATH
/
"val"
/
f
"
{
self
.
subject
}
_val.csv"
...
...
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