Skip to content

Commit

Permalink
uncomment renaming columns part
Browse files Browse the repository at this point in the history
  • Loading branch information
naga-karthik committed Jun 7, 2024
1 parent 14c97cb commit 9c52132
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compute_metrics_reloaded.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ def main():
df_mean = (df.drop(columns=['reference', 'prediction', 'EmptyRef', 'EmptyPred']).groupby('label').
agg(['mean', 'std']).reset_index())

# # Rename columns
# df.rename(columns={metric: METRICS_TO_NAME[metric] for metric in METRICS_TO_NAME}, inplace=True)
# df_mean.rename(columns={metric: METRICS_TO_NAME[metric] for metric in METRICS_TO_NAME}, inplace=True)
# Rename columns
df.rename(columns={metric: METRICS_TO_NAME[metric] for metric in METRICS_TO_NAME}, inplace=True)
df_mean.rename(columns={metric: METRICS_TO_NAME[metric] for metric in METRICS_TO_NAME}, inplace=True)

# format output up to 3 decimal places
df = df.round(3)
Expand Down

0 comments on commit 9c52132

Please sign in to comment.