Commit
·
93916f2
1
Parent(s):
777fcbc
update nan
Browse files
app.py
CHANGED
|
@@ -256,7 +256,7 @@ def regex_table(dataframe, regex, filter_button, style=True):
|
|
| 256 |
if update_scores:
|
| 257 |
data["Score"] = (data["Chat"] + data["Chat Hard"] + data["Safety"] + data["Reasoning"]) / 4
|
| 258 |
# if "Prior Sets (0.5 weight)" in data.columns:
|
| 259 |
-
# data["Prior Sets (0.5 weight)"] = np.
|
| 260 |
# sort array by Score column
|
| 261 |
data = data.sort_values(by='Score', ascending=False)
|
| 262 |
|
|
@@ -273,8 +273,8 @@ def regex_table(dataframe, regex, filter_button, style=True):
|
|
| 273 |
# round all others to 1 decimal
|
| 274 |
for col in data.columns:
|
| 275 |
if col not in ["", "Model", "Model Type", "Score", "Average"]:
|
| 276 |
-
# replace any data[col].values == '' with np.
|
| 277 |
-
data[col] = data[col].replace('', np.
|
| 278 |
data[col] = np.round(np.array(data[col].values).astype(float), 1)
|
| 279 |
if style:
|
| 280 |
# apply color
|
|
|
|
| 256 |
if update_scores:
|
| 257 |
data["Score"] = (data["Chat"] + data["Chat Hard"] + data["Safety"] + data["Reasoning"]) / 4
|
| 258 |
# if "Prior Sets (0.5 weight)" in data.columns:
|
| 259 |
+
# data["Prior Sets (0.5 weight)"] = np.nan
|
| 260 |
# sort array by Score column
|
| 261 |
data = data.sort_values(by='Score', ascending=False)
|
| 262 |
|
|
|
|
| 273 |
# round all others to 1 decimal
|
| 274 |
for col in data.columns:
|
| 275 |
if col not in ["", "Model", "Model Type", "Score", "Average"]:
|
| 276 |
+
# replace any data[col].values == '' with np.nan
|
| 277 |
+
data[col] = data[col].replace('', np.nan)
|
| 278 |
data[col] = np.round(np.array(data[col].values).astype(float), 1)
|
| 279 |
if style:
|
| 280 |
# apply color
|