Spaces:
Running
Running
jasonshaoshun
commited on
Commit
·
96e019a
1
Parent(s):
02e508b
debug
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -13,7 +13,7 @@ from src.submission.check_validity import is_model_on_hub
|
|
13 |
|
14 |
|
15 |
from typing import List, Dict
|
16 |
-
|
17 |
|
18 |
|
19 |
def compute_area(edge_counts, faithfulnesses, log_scale=True):
|
@@ -258,7 +258,7 @@ class EvalResult_MIB_CAUSALGRAPH:
|
|
258 |
data_dict[col_name] = round(np.mean(scores), 3)
|
259 |
|
260 |
return data_dict
|
261 |
-
|
262 |
def get_raw_eval_results_mib_causalgraph(results_path: str, requests_path: str) -> List[EvalResult_MIB_CAUSALGRAPH]:
|
263 |
model_result_filepaths = []
|
264 |
|
|
|
13 |
|
14 |
|
15 |
from typing import List, Dict
|
16 |
+
from collections import defaultdict
|
17 |
|
18 |
|
19 |
def compute_area(edge_counts, faithfulnesses, log_scale=True):
|
|
|
258 |
data_dict[col_name] = round(np.mean(scores), 3)
|
259 |
|
260 |
return data_dict
|
261 |
+
|
262 |
def get_raw_eval_results_mib_causalgraph(results_path: str, requests_path: str) -> List[EvalResult_MIB_CAUSALGRAPH]:
|
263 |
model_result_filepaths = []
|
264 |
|