Skip to content

Commit

Permalink
update ans
Browse files Browse the repository at this point in the history
  • Loading branch information
xingzhongyu committed Dec 31, 2024
1 parent 7cb693a commit 36d6412
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/atlas/get_result_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ def get_metric(run):
elif all_best_run.summary[metric_col] > best_run.summary[metric_col] and goal == "minimize":
all_best_run = best_run
all_best_step_name = step_name
run_states["finished_rate"]=f"{run_states["all_finished_runs"]/run_states["all_total_runs"]:.2%}"
num=run_states["all_finished_runs"]/run_states["all_total_runs"]
run_states["finished_rate"]=f"{num:.2%}"
runs_states_str="|".join([f"{k}:{v}" for k,v in run_states.items()])
return all_best_step_name, all_best_run, all_best_run.summary[metric_col],runs_states_str

Expand Down

0 comments on commit 36d6412

Please sign in to comment.