round
Browse files
app.py
CHANGED
@@ -187,7 +187,7 @@ def get_full_table(arena_df, model_table_df):
|
|
187 |
row.append(model_name)
|
188 |
if model_key in arena_df.index:
|
189 |
idx = arena_df.index.get_loc(model_key)
|
190 |
-
row.append(round(arena_df.iloc[idx]["rating"]
|
191 |
else:
|
192 |
row.append(np.nan)
|
193 |
row.append(model_table_df.iloc[i]["MT-bench (score)"])
|
@@ -218,12 +218,12 @@ def get_arena_table(arena_df, model_table_df):
|
|
218 |
# model display name
|
219 |
row.append(model_name)
|
220 |
# elo rating
|
221 |
-
row.append(round(arena_df.iloc[i]["rating"]
|
222 |
upper_diff = round(
|
223 |
-
arena_df.iloc[i]["rating_q975"] - arena_df.iloc[i]["rating"]
|
224 |
)
|
225 |
lower_diff = round(
|
226 |
-
arena_df.iloc[i]["rating"] - arena_df.iloc[i]["rating_q025"]
|
227 |
)
|
228 |
row.append(f"+{upper_diff}/-{lower_diff}")
|
229 |
# num battles
|
|
|
187 |
row.append(model_name)
|
188 |
if model_key in arena_df.index:
|
189 |
idx = arena_df.index.get_loc(model_key)
|
190 |
+
row.append(round(arena_df.iloc[idx]["rating"]))
|
191 |
else:
|
192 |
row.append(np.nan)
|
193 |
row.append(model_table_df.iloc[i]["MT-bench (score)"])
|
|
|
218 |
# model display name
|
219 |
row.append(model_name)
|
220 |
# elo rating
|
221 |
+
row.append(round(arena_df.iloc[i]["rating"]))
|
222 |
upper_diff = round(
|
223 |
+
arena_df.iloc[i]["rating_q975"] - arena_df.iloc[i]["rating"]
|
224 |
)
|
225 |
lower_diff = round(
|
226 |
+
arena_df.iloc[i]["rating"] - arena_df.iloc[i]["rating_q025"]
|
227 |
)
|
228 |
row.append(f"+{upper_diff}/-{lower_diff}")
|
229 |
# num battles
|