Spaces:
Running
Running
jasonshaoshun
commited on
Commit
·
53e4364
1
Parent(s):
0be3cff
debug
Browse files
src/leaderboard/read_evals.py
CHANGED
@@ -208,14 +208,8 @@ class EvalResult_MIB_CAUSALGRAPH:
|
|
208 |
|
209 |
def init_from_json_file(self, json_filepath):
|
210 |
"""Inits results from the method result file"""
|
211 |
-
with open(json_filepath) as fp:
|
212 |
-
data = json.load(fp)
|
213 |
-
|
214 |
-
method_name = data.get("method_name")
|
215 |
-
|
216 |
-
# Initialize results dictionary with the exact structure from JSON
|
217 |
results = {}
|
218 |
-
|
219 |
|
220 |
def to_dict(self):
|
221 |
|
|
|
208 |
|
209 |
def init_from_json_file(self, json_filepath):
|
210 |
"""Inits results from the method result file"""
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
results = {}
|
212 |
+
|
213 |
|
214 |
def to_dict(self):
|
215 |
|