Spaces:
Runtime error
Runtime error
[email protected]
commited on
Commit
·
714d69a
1
Parent(s):
9dfc3ef
update
Browse files- src/leaderboard/read_evals.py +1 -1
- src/populate.py +1 -0
src/leaderboard/read_evals.py
CHANGED
|
@@ -157,7 +157,7 @@ def get_request_file_for_model(requests_path, model_name, precision):
|
|
| 157 |
def get_raw_eval_results(results_path: str, requests_path: str) -> list[EvalResult]:
|
| 158 |
"""From the path of the results folder root, extract all needed info for results"""
|
| 159 |
model_result_filepaths = []
|
| 160 |
-
|
| 161 |
for root, _, files in os.walk(results_path):
|
| 162 |
# We should only have json files in model results
|
| 163 |
if len(files) == 0 or any([not f.endswith(".json") for f in files]):
|
|
|
|
| 157 |
def get_raw_eval_results(results_path: str, requests_path: str) -> list[EvalResult]:
|
| 158 |
"""From the path of the results folder root, extract all needed info for results"""
|
| 159 |
model_result_filepaths = []
|
| 160 |
+
print(results_path)
|
| 161 |
for root, _, files in os.walk(results_path):
|
| 162 |
# We should only have json files in model results
|
| 163 |
if len(files) == 0 or any([not f.endswith(".json") for f in files]):
|
src/populate.py
CHANGED
|
@@ -11,6 +11,7 @@ from src.leaderboard.read_evals import get_raw_eval_results
|
|
| 11 |
def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
|
| 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)
|
|
|
|
| 11 |
def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
|
| 12 |
"""Creates a dataframe from all the individual experiment results"""
|
| 13 |
raw_data = get_raw_eval_results(results_path, requests_path)
|
| 14 |
+
print(raw_data)
|
| 15 |
all_data_json = [v.to_dict() for v in raw_data]
|
| 16 |
|
| 17 |
df = pd.DataFrame.from_records(all_data_json)
|