File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -639,14 +639,24 @@ def summarize_win():
639
639
)
640
640
641
641
timeout_stats = get_timeout_stats (state .llm_data )
642
+ coding_timeout_pct = (
643
+ round (timeout_stats ["coding" ]["timeout" ] / timeout_stats ["coding" ]["total" ] * 100 , 2 )
644
+ if timeout_stats ["coding" ]["total" ] > 0
645
+ else 0
646
+ )
642
647
info6 .metric (
643
648
"Timeouts (C)" ,
644
- f"{ round ( timeout_stats [ 'coding' ][ 'timeout' ] / timeout_stats [ 'coding' ][ 'total' ] * 100 , 2 ) } %" ,
649
+ f"{ coding_timeout_pct } %" ,
645
650
help = f"{ timeout_stats ['coding' ]['timeout' ]} /{ timeout_stats ['coding' ]['total' ]} " ,
646
651
)
652
+ running_timeout_pct = (
653
+ round (timeout_stats ["running" ]["timeout" ] / timeout_stats ["running" ]["total" ] * 100 , 2 )
654
+ if timeout_stats ["running" ]["total" ] > 0
655
+ else 0
656
+ )
647
657
info7 .metric (
648
658
"Timeouts (R)" ,
649
- f"{ round ( timeout_stats [ 'running' ][ 'timeout' ] / timeout_stats [ 'running' ][ 'total' ] * 100 , 2 ) } %" ,
659
+ f"{ running_timeout_pct } %" ,
650
660
help = f"{ timeout_stats ['running' ]['timeout' ]} /{ timeout_stats ['running' ]['total' ]} " ,
651
661
)
652
662
Original file line number Diff line number Diff line change @@ -197,9 +197,9 @@ def get_sota_exp_stat(
197
197
]
198
198
running_exps .sort (key = lambda x : x [1 ], reverse = True )
199
199
for exp , loop_id in running_exps :
200
- if exp .experiment_workspace .all_codes == sota_exp .experiment_workspace .all_codes and str ( exp . hypothesis ) == str (
201
- sota_exp .hypothesis
202
- ):
200
+ if exp .experiment_workspace .all_codes == sota_exp .experiment_workspace .all_codes and "" . join (
201
+ str ( i ) for i in exp .hypothesis . __dict__ . values ()
202
+ ) == "" . join ( str ( i ) for i in sota_exp . hypothesis . __dict__ . values ()) :
203
203
sota_loop_id = loop_id
204
204
break
205
205
You can’t perform that action at this time.
0 commit comments