From c8830f3f3d1c78c000efcd3b5affc09751b94deb Mon Sep 17 00:00:00 2001 From: amstrongzyf <201840057@smail.nju.edu.cn> Date: Mon, 1 Sep 2025 14:50:26 +0800 Subject: [PATCH] fix: jinja problem of enumerate (#1216) --- .../data_science/proposal/exp_gen/prompts_v2.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rdagent/scenarios/data_science/proposal/exp_gen/prompts_v2.yaml b/rdagent/scenarios/data_science/proposal/exp_gen/prompts_v2.yaml index edcf2be4..072ae2d0 100644 --- a/rdagent/scenarios/data_science/proposal/exp_gen/prompts_v2.yaml +++ b/rdagent/scenarios/data_science/proposal/exp_gen/prompts_v2.yaml @@ -473,8 +473,8 @@ hypothesis_select: The following are additional hypotheses that have been approved by other experiments. If any of these hypotheses have a SOTA score significantly higher than the current SOTA score in this experiment, you may want to prioritize considering them: Additional hypotheses (may include those corresponding to the SOTA score): - {% for i, item in enumerate(selected_extra_hypo_l) %} - {{ i+1 }}. {{ item[0] }} (item[1]: {{ "%.3f"|format(item[1]) }}) + {% for item in selected_extra_hypo_l %} + {{ loop.index }}. {{ item[0] }} (score: {{ "%.3f"|format(item[1]) }}) {% endfor %} {% endif %} {% else %} @@ -485,8 +485,8 @@ hypothesis_select: The following are additional hypotheses that have been approved by other experiments. You can also serve as references and are part of the Hypothesis Source to help you quickly reach or surpass the SOTA score: Additional hypotheses (may include those corresponding to the SOTA score): - {% for i, item in enumerate(selected_extra_hypo_l) %} - {{ i+1 }}. {{ item[0] }} (item[1]: {{ "%.3f"|format(item[1]) }}) + {% for item in selected_extra_hypo_l %} + {{ loop.index }}. {{ item[0] }} (score: {{ "%.3f"|format(item[1]) }}) {% endfor %} {% endif %} {% endif %}