Skip to content

Commit c91dbf2

Browse files
author
Arthur Douillard
committed
[common] Change file log format.
1 parent 15fdfee commit c91dbf2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

inclearn/results_utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ def save_results(results, label):
1919
if not os.path.exists(folder_path):
2020
os.makedirs(folder_path)
2121

22-
file_path = "{date}_{label}_{seed}.json".format(
23-
date=utils.get_date(), label=label, seed=results["config"]["seed"]
24-
)
22+
file_path = "{}_{}_.json".format(utils.get_date(), results["config"]["seed"])
2523
with open(os.path.join(folder_path, file_path), "w+") as f:
26-
json.dump(results, f)
24+
json.dump(results, f, indent=2)
2725

2826

2927
def extract(paths, avg_inc=False):

0 commit comments

Comments
 (0)