Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bmosaicml committed Sep 29, 2023
1 parent de28be4 commit 193b4e0
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions scripts/eval/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,23 +314,15 @@ def main(cfg: DictConfig):
if eval_gauntlet_df is not None and eval_gauntlet_callback is not None:
assert composite_scores is not None
row = {'model_name': model_cfg['model_name']}
row.update({
t.name:
composite_scores.get(f'icl/metrics/eval_gauntlet/{t.name}',
None)
for t in eval_gauntlet_callback.categories
})
row.update({
'average':
composite_scores[f'icl/metrics/eval_gauntlet/average']
})
row.update({k.split('/')[-1]: v for k,v in composite_scores.items()})
eval_gauntlet_df = pd.concat(
[eval_gauntlet_df, pd.DataFrame([row])], ignore_index=True)

print(f'Printing gauntlet results for all models')

print(
eval_gauntlet_df.sort_values(
'average', ascending=False).to_markdown(index=False))
list(eval_gauntlet_df.columns)[-1], ascending=False).to_markdown(index=False))
print(f'Printing complete results for all models')
assert models_df is not None
print(models_df.to_markdown(index=False))
Expand Down

0 comments on commit 193b4e0

Please sign in to comment.