Skip to content

Commit

Permalink
πŸ› Questions Eval: fix mean computation problem
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmeoni committed Oct 2, 2024
1 parent 057fba7 commit 6740e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/questions_eval/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def main(cfg: DictConfig):
f"{stat}/score/{score_type}": (
df_joined[f"{score_type}_score"].agg(stat)
if stat == "sum"
else df_joined[f"{score_type}_score"].agg(stat) / len(df_joined)
else df_joined[f"{score_type}_score"].agg("sum") / len(df_joined)
)
for stat in ["sum", "mean"]
for score_type in ["raw", "synthetic", "real", "strict_synthetic_qa", "strict_qa"]
Expand Down

0 comments on commit 6740e58

Please sign in to comment.