CodeGoat24 commited on
Commit
fecbd6d
·
verified ·
1 Parent(s): 610a1c1

Update src/json_leaderboard.py

Browse files
Files changed (1) hide show
  1. src/json_leaderboard.py +1 -8
src/json_leaderboard.py CHANGED
@@ -53,13 +53,11 @@ def create_leaderboard_df(json_path="leaderboard_data.json"):
53
  'Style': df['Style'].apply(lambda x: f"{x:.2f}"),
54
 
55
  'World Knowledge': df['World Knowledge'].apply(lambda x: f"{x:.2f}"),
 
56
  'Logical Reasoning': df['Logical Reasoning'].apply(lambda x: f"{x:.2f}"),
57
 
58
-
59
  'Text': df['Text'].apply(lambda x: f"{x:.2f}"),
60
 
61
-
62
-
63
  'Attribute-Overall': df['Attribute-Overall'].apply(lambda x: f"{x:.2f}"),
64
  'Quantity': df['Quantity'].apply(lambda x: f"{x:.2f}"),
65
  'Expression': df['Expression'].apply(lambda x: f"{x:.2f}"),
@@ -82,23 +80,18 @@ def create_leaderboard_df(json_path="leaderboard_data.json"):
82
  'Inclusion': df['Inclusion'].apply(lambda x: f"{x:.2f}"),
83
  'Comparison': df['Comparison'].apply(lambda x: f"{x:.2f}"),
84
 
85
-
86
  'Compound-Overall': df['Compound-Overall'].apply(lambda x: f"{x:.2f}"),
87
  'Imagination': df['Imagination'].apply(lambda x: f"{x:.2f}"),
88
  'Feature matching': df['Feature matching'].apply(lambda x: f"{x:.2f}"),
89
 
90
-
91
  'Grammar-Overall': df['Grammar-Overall'].apply(lambda x: f"{x:.2f}"),
92
  'Pronoun Reference': df['Pronoun Reference'].apply(lambda x: f"{x:.2f}"),
93
  'Consistency': df['Consistency'].apply(lambda x: f"{x:.2f}"),
94
  'Negation': df['Negation'].apply(lambda x: f"{x:.2f}"),
95
 
96
-
97
  'Layout-Overall': df['Layout-Overall'].apply(lambda x: f"{x:.2f}"),
98
  '2D': df['2D'].apply(lambda x: f"{x:.2f}"),
99
  '3D': df['3D'].apply(lambda x: f"{x:.2f}"),
100
-
101
-
102
  })
103
 
104
  return display_df
 
53
  'Style': df['Style'].apply(lambda x: f"{x:.2f}"),
54
 
55
  'World Knowledge': df['World Knowledge'].apply(lambda x: f"{x:.2f}"),
56
+
57
  'Logical Reasoning': df['Logical Reasoning'].apply(lambda x: f"{x:.2f}"),
58
 
 
59
  'Text': df['Text'].apply(lambda x: f"{x:.2f}"),
60
 
 
 
61
  'Attribute-Overall': df['Attribute-Overall'].apply(lambda x: f"{x:.2f}"),
62
  'Quantity': df['Quantity'].apply(lambda x: f"{x:.2f}"),
63
  'Expression': df['Expression'].apply(lambda x: f"{x:.2f}"),
 
80
  'Inclusion': df['Inclusion'].apply(lambda x: f"{x:.2f}"),
81
  'Comparison': df['Comparison'].apply(lambda x: f"{x:.2f}"),
82
 
 
83
  'Compound-Overall': df['Compound-Overall'].apply(lambda x: f"{x:.2f}"),
84
  'Imagination': df['Imagination'].apply(lambda x: f"{x:.2f}"),
85
  'Feature matching': df['Feature matching'].apply(lambda x: f"{x:.2f}"),
86
 
 
87
  'Grammar-Overall': df['Grammar-Overall'].apply(lambda x: f"{x:.2f}"),
88
  'Pronoun Reference': df['Pronoun Reference'].apply(lambda x: f"{x:.2f}"),
89
  'Consistency': df['Consistency'].apply(lambda x: f"{x:.2f}"),
90
  'Negation': df['Negation'].apply(lambda x: f"{x:.2f}"),
91
 
 
92
  'Layout-Overall': df['Layout-Overall'].apply(lambda x: f"{x:.2f}"),
93
  '2D': df['2D'].apply(lambda x: f"{x:.2f}"),
94
  '3D': df['3D'].apply(lambda x: f"{x:.2f}"),
 
 
95
  })
96
 
97
  return display_df