Adam Jirkovsky
commited on
Commit
·
1319700
1
Parent(s):
01dcf68
Show accuracies in percentage
Browse files- src/display/about.py +1 -1
- src/populate.py +1 -0
src/display/about.py
CHANGED
@@ -31,7 +31,7 @@ class Tasks(Enum):
|
|
31 |
# Your leaderboard name
|
32 |
TITLE = """<h1 align="center" id="space-title">🇨🇿 CzechBench Leaderboard</h1>"""
|
33 |
|
34 |
-
TABLE_DESC = "The values
|
35 |
|
36 |
# What does your leaderboard evaluate?
|
37 |
INTRODUCTION_OLD = """
|
|
|
31 |
# Your leaderboard name
|
32 |
TITLE = """<h1 align="center" id="space-title">🇨🇿 CzechBench Leaderboard</h1>"""
|
33 |
|
34 |
+
TABLE_DESC = "The values shown in the table represent the accuracy metric in percentage."
|
35 |
|
36 |
# What does your leaderboard evaluate?
|
37 |
INTRODUCTION_OLD = """
|
src/populate.py
CHANGED
@@ -22,6 +22,7 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
|
|
22 |
df = pd.DataFrame.from_records(raw_data)
|
23 |
#df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
|
24 |
df = df.rename(columns=HEADER_MAP)
|
|
|
25 |
df = df[cols].round(decimals=2)
|
26 |
df.replace(r'\s+', np.nan, regex=True)
|
27 |
# filter out if any of the benchmarks have not been produced
|
|
|
22 |
df = pd.DataFrame.from_records(raw_data)
|
23 |
#df = df.sort_values(by=[AutoEvalColumn.average.name], ascending=False)
|
24 |
df = df.rename(columns=HEADER_MAP)
|
25 |
+
df[df.select_dtypes(include=['number']).columns] *= 100 # convert to percentage
|
26 |
df = df[cols].round(decimals=2)
|
27 |
df.replace(r'\s+', np.nan, regex=True)
|
28 |
# filter out if any of the benchmarks have not been produced
|