mirror of
https://github.com/GammaTauAI/reflexion-human-eval
synced 2024-11-16 00:12:59 +00:00
fix rate
This commit is contained in:
parent
a774fb783f
commit
10ae3e53b2
@ -56,6 +56,8 @@ def run_immediate_reflexion(
|
||||
|
||||
is_solved = exe.evaluate(
|
||||
item["entry_point"], cur_func_impl, item["test"], timeout=10)
|
||||
if is_solved:
|
||||
num_success += 1
|
||||
|
||||
item["is_solved"] = is_solved
|
||||
item["reflections"] = reflections
|
||||
|
10
run_reflexion_humaneval_30.sh
Executable file
10
run_reflexion_humaneval_30.sh
Executable file
@ -0,0 +1,10 @@
|
||||
python main.py \
|
||||
--run_name "reflexion_humaneval30_py" \
|
||||
--root_dir "root" \
|
||||
--dataset_path ./benchmarks/humaneval-py_sample30.jsonl \
|
||||
--strategy "reflexion" \
|
||||
--language "py" \
|
||||
--model "gpt-4" \
|
||||
--pass_at_k "1" \
|
||||
--max_iters "5" \
|
||||
--verbose
|
Loading…
Reference in New Issue
Block a user