Spaces:
Running
Running
Commit
·
a83b29d
1
Parent(s):
3a984c4
rename column names
Browse files
app.py
CHANGED
|
@@ -42,8 +42,7 @@ repo = snapshot_download(
|
|
| 42 |
|
| 43 |
|
| 44 |
def avg_over_rewardbench_v2(dataframe_core):
|
| 45 |
-
|
| 46 |
-
domain_cols = ["factuality", "precise if", "math", "safety", "chat", "ties"]
|
| 47 |
domain_weights = [1, 1, 1, 1, 1, 1]
|
| 48 |
new_df = dataframe_core.copy()
|
| 49 |
|
|
@@ -59,18 +58,6 @@ def avg_over_rewardbench_v2(dataframe_core):
|
|
| 59 |
# Rearrange columns for consistent output
|
| 60 |
keep_columns = ["model", "model_type", "average"] + domain_cols
|
| 61 |
new_df = new_df[keep_columns]
|
| 62 |
-
|
| 63 |
-
# TODO: update domain_cols and comment this out if final dataset version changes names
|
| 64 |
-
new_df = new_df.rename(
|
| 65 |
-
columns={
|
| 66 |
-
"factuality": "Factuality",
|
| 67 |
-
"precise if": "Precise IF",
|
| 68 |
-
"math": "Math",
|
| 69 |
-
"safety": "Safety",
|
| 70 |
-
"chat": "Focus",
|
| 71 |
-
"ties": "Ties",
|
| 72 |
-
}
|
| 73 |
-
)
|
| 74 |
return new_df
|
| 75 |
|
| 76 |
|
|
|
|
| 42 |
|
| 43 |
|
| 44 |
def avg_over_rewardbench_v2(dataframe_core):
|
| 45 |
+
domain_cols = ["Factuality", "Precise IF", "Math", "Safety", "Focus", "Ties"]
|
|
|
|
| 46 |
domain_weights = [1, 1, 1, 1, 1, 1]
|
| 47 |
new_df = dataframe_core.copy()
|
| 48 |
|
|
|
|
| 58 |
# Rearrange columns for consistent output
|
| 59 |
keep_columns = ["model", "model_type", "average"] + domain_cols
|
| 60 |
new_df = new_df[keep_columns]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
return new_df
|
| 62 |
|
| 63 |
|