Spaces:
Runtime error
Runtime error
tangtang
commited on
Commit
·
bd8143b
1
Parent(s):
e0e6c0f
Update space1
Browse files- src/populate.py +1 -2
src/populate.py
CHANGED
|
@@ -12,10 +12,9 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
|
|
| 12 |
"""Creates a dataframe from all the individual experiment results"""
|
| 13 |
raw_data = get_raw_eval_results(results_path, requests_path)
|
| 14 |
all_data_json = [v.to_dict() for v in raw_data]
|
| 15 |
-
|
| 16 |
df = pd.DataFrame.from_records(all_data_json)
|
| 17 |
print(df)
|
| 18 |
-
|
| 19 |
df = df.sort_values(by=["Precision (%)"], ascending=False)
|
| 20 |
|
| 21 |
# 假设用 Precision (%) 和 Title search rate (%) 的平均值
|
|
|
|
| 12 |
"""Creates a dataframe from all the individual experiment results"""
|
| 13 |
raw_data = get_raw_eval_results(results_path, requests_path)
|
| 14 |
all_data_json = [v.to_dict() for v in raw_data]
|
| 15 |
+
print(all_data_json)
|
| 16 |
df = pd.DataFrame.from_records(all_data_json)
|
| 17 |
print(df)
|
|
|
|
| 18 |
df = df.sort_values(by=["Precision (%)"], ascending=False)
|
| 19 |
|
| 20 |
# 假设用 Precision (%) 和 Title search rate (%) 的平均值
|