Skip to content

Commit

Permalink
fixed :bug in summary_df
Browse files Browse the repository at this point in the history
  • Loading branch information
Niccolo-Ajroldi committed Oct 11, 2024
1 parent 223b90b commit 076c1a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scoring/score_submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ def get_summary_df(workload, workload_df, include_test_split=False):
axis=1)
summary_df['time to target on val (s)'] = workload_df.apply(
lambda x: x['accumulated_submission_time'][int(x[
'index to target on val'])]
if x['val target reached'] else np.inf,
'index to target on val'])] if x['val target reached'] else np.inf,
axis=1)

# test metrics
Expand Down

0 comments on commit 076c1a7

Please sign in to comment.