sh1gechan commited on
Commit
c786f5e
·
verified ·
1 Parent(s): d046801

Update src/populate.py

Browse files
Files changed (1) hide show
  1. src/populate.py +0 -3
src/populate.py CHANGED
@@ -21,13 +21,10 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
21
  'ALT E to J BLEU', 'ALT J to E BLEU', 'WikiCorpus E to J BLEU', 'WikiCorpus J to E BLEU',
22
  'XL-Sum JA BLEU', 'XL-Sum ROUGE1', 'XL-Sum ROUGE2', 'XL-Sum ROUGE-Lsum'
23
  ]
24
- print(f"Column names before creating DataFrame: {df.columns}")
25
 
26
  existing_score_cols = [col for col in score_cols if col in df.columns]
27
- print(f"Existing score columns: {existing_score_cols}")
28
 
29
  # スコア列を100で割り、.4f形式でフォーマット
30
- print(f"Existing score columns before adjustment: {df[existing_score_cols]}")
31
  df[existing_score_cols] = (df[existing_score_cols] / 100).applymap(lambda x: f'{x:.4f}')
32
  df = df.sort_values(by=[AutoEvalColumn.AVG.name], ascending=False)
33
  df = df[cols].round(decimals=2)
 
21
  'ALT E to J BLEU', 'ALT J to E BLEU', 'WikiCorpus E to J BLEU', 'WikiCorpus J to E BLEU',
22
  'XL-Sum JA BLEU', 'XL-Sum ROUGE1', 'XL-Sum ROUGE2', 'XL-Sum ROUGE-Lsum'
23
  ]
 
24
 
25
  existing_score_cols = [col for col in score_cols if col in df.columns]
 
26
 
27
  # スコア列を100で割り、.4f形式でフォーマット
 
28
  df[existing_score_cols] = (df[existing_score_cols] / 100).applymap(lambda x: f'{x:.4f}')
29
  df = df.sort_values(by=[AutoEvalColumn.AVG.name], ascending=False)
30
  df = df[cols].round(decimals=2)