Unverified Commit e0b3cbf5 authored by Lintang Sutawika's avatar Lintang Sutawika Committed by GitHub
Browse files

__setitem__ allows setting key-value like dict

parent f148c2e2
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment