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
e0b3cbf5
Unverified
Commit
e0b3cbf5
authored
Jul 25, 2023
by
Lintang Sutawika
Committed by
GitHub
Jul 25, 2023
Browse files
__setitem__ allows setting key-value like dict
parent
f148c2e2
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 @
e0b3cbf5
...
@@ -122,7 +122,7 @@ def simple_evaluate(
...
@@ -122,7 +122,7 @@ def simple_evaluate(
f
"Overwriting default num_fewshot of
{
task_name
}
from
{
default_num_fewshot
}
to
{
num_fewshot
}
"
f
"Overwriting default num_fewshot of
{
task_name
}
from
{
default_num_fewshot
}
to
{
num_fewshot
}
"
)
)
task_dict
[
task_name
].
_config
.
__setitem__
(
"num_fewshot"
,
num_fewshot
)
task_dict
[
task_name
].
_config
[
"num_fewshot"
]
=
num_fewshot
if
check_integrity
:
if
check_integrity
:
run_task_tests
(
task_list
=
tasks
)
run_task_tests
(
task_list
=
tasks
)
...
...
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