tangtang
commited on
Commit
·
d2e36fd
1
Parent(s):
b5c7e85
Update space1
Browse files- src/populate.py +6 -4
src/populate.py
CHANGED
|
@@ -10,7 +10,7 @@ from src.leaderboard.read_evals import get_raw_eval_results
|
|
| 10 |
|
| 11 |
CLOSED_MODELS = {
|
| 12 |
"openai/GPT-4o": {"params": 72000, "license": "proprietary", "likes": 0, "model_type": "🔒 : closed"},
|
| 13 |
-
"Claude-3.5-Sonnet": {"params":
|
| 14 |
}
|
| 15 |
|
| 16 |
|
|
@@ -94,10 +94,12 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
|
|
| 94 |
|
| 95 |
# 如果 benchmark_cols 有列不在 df 中,忽略
|
| 96 |
benchmark_cols = [c for c in benchmark_cols if c in df.columns]
|
| 97 |
-
|
| 98 |
-
df = df[has_no_nan_values(df, benchmark_cols)]
|
| 99 |
|
| 100 |
-
#
|
|
|
|
|
|
|
|
|
|
| 101 |
return df
|
| 102 |
|
| 103 |
|
|
|
|
| 10 |
|
| 11 |
CLOSED_MODELS = {
|
| 12 |
"openai/GPT-4o": {"params": 72000, "license": "proprietary", "likes": 0, "model_type": "🔒 : closed"},
|
| 13 |
+
"Claude-3.5-Sonnet": {"params": 72000, "license": "proprietary", "likes": 0, "model_type": "🔒 : closed"},
|
| 14 |
}
|
| 15 |
|
| 16 |
|
|
|
|
| 94 |
|
| 95 |
# 如果 benchmark_cols 有列不在 df 中,忽略
|
| 96 |
benchmark_cols = [c for c in benchmark_cols if c in df.columns]
|
| 97 |
+
df[benchmark_cols] = df[benchmark_cols].fillna(0)
|
|
|
|
| 98 |
|
| 99 |
+
# if benchmark_cols:
|
| 100 |
+
# df = df[has_no_nan_values(df, benchmark_cols)]
|
| 101 |
+
|
| 102 |
+
print(df.head(10))
|
| 103 |
return df
|
| 104 |
|
| 105 |
|