This commit is contained in:
XianBW
2025-08-01 18:07:19 +08:00
committed by GitHub
parent 7134a51afa
commit d0832eb5ff
2 changed files with 15 additions and 5 deletions
+12 -2
View File
@@ -639,14 +639,24 @@ def summarize_win():
)
timeout_stats = get_timeout_stats(state.llm_data)
coding_timeout_pct = (
round(timeout_stats["coding"]["timeout"] / timeout_stats["coding"]["total"] * 100, 2)
if timeout_stats["coding"]["total"] > 0
else 0
)
info6.metric(
"Timeouts (C)",
f"{round(timeout_stats['coding']['timeout'] / timeout_stats['coding']['total'] * 100, 2)}%",
f"{coding_timeout_pct}%",
help=f"{timeout_stats['coding']['timeout']}/{timeout_stats['coding']['total']}",
)
running_timeout_pct = (
round(timeout_stats["running"]["timeout"] / timeout_stats["running"]["total"] * 100, 2)
if timeout_stats["running"]["total"] > 0
else 0
)
info7.metric(
"Timeouts (R)",
f"{round(timeout_stats['running']['timeout'] / timeout_stats['running']['total'] * 100, 2)}%",
f"{running_timeout_pct}%",
help=f"{timeout_stats['running']['timeout']}/{timeout_stats['running']['total']}",
)
+3 -3
View File
@@ -197,9 +197,9 @@ def get_sota_exp_stat(
]
running_exps.sort(key=lambda x: x[1], reverse=True)
for exp, loop_id in running_exps:
if exp.experiment_workspace.all_codes == sota_exp.experiment_workspace.all_codes and str(exp.hypothesis) == str(
sota_exp.hypothesis
):
if exp.experiment_workspace.all_codes == sota_exp.experiment_workspace.all_codes and "".join(
str(i) for i in exp.hypothesis.__dict__.values()
) == "".join(str(i) for i in sota_exp.hypothesis.__dict__.values()):
sota_loop_id = loop_id
break