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
7d5aa3f7
Commit
7d5aa3f7
authored
Feb 14, 2021
by
Leo Gao
Browse files
Typo
parent
624c038e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/evaluator.py
lm_eval/evaluator.py
+1
-1
No files found.
lm_eval/evaluator.py
View file @
7d5aa3f7
...
@@ -34,7 +34,7 @@ def evaluate(lm, task_dict, provide_description, num_fewshot, limit):
...
@@ -34,7 +34,7 @@ def evaluate(lm, task_dict, provide_description, num_fewshot, limit):
task_docs
=
list
(
task_doc_func
())
task_docs
=
list
(
task_doc_func
())
rnd
=
random
.
Random
()
rnd
=
random
.
Random
()
rnd
.
seed
(
42
)
rnd
.
seed
(
42
)
rnd
.
shuffle
(
docs
)
rnd
.
shuffle
(
task_
docs
)
for
doc_id
,
doc
in
enumerate
(
itertools
.
islice
(
task_docs
,
0
,
limit
)):
for
doc_id
,
doc
in
enumerate
(
itertools
.
islice
(
task_docs
,
0
,
limit
)):
docs
[(
task_name
,
doc_id
)]
=
doc
docs
[(
task_name
,
doc_id
)]
=
doc
...
...
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