Skip to content

Commit

Permalink
round per task display
Browse files Browse the repository at this point in the history
  • Loading branch information
enyst committed Nov 28, 2024
1 parent 6630fe9 commit 2dc5f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evaluation/integration_tests/run_infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ def load_integration_tests() -> pd.DataFrame:
)
logger.info('-' * 100)

# record cost for each instance
df['cost'] = df['metrics'].apply(lambda x: x['accumulated_cost'])
# record cost for each instance, with 3 decimal places
df['cost'] = df['metrics'].apply(lambda x: round(x['accumulated_cost'], 3))
logger.info(f'Total cost: USD {df["cost"].sum():.2f}')

report_file = os.path.join(metadata.eval_output_dir, 'report.md')
Expand Down

0 comments on commit 2dc5f83

Please sign in to comment.