We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15fdfee commit c91dbf2Copy full SHA for c91dbf2
inclearn/results_utils.py
@@ -19,11 +19,9 @@ def save_results(results, label):
19
if not os.path.exists(folder_path):
20
os.makedirs(folder_path)
21
22
- file_path = "{date}_{label}_{seed}.json".format(
23
- date=utils.get_date(), label=label, seed=results["config"]["seed"]
24
- )
+ file_path = "{}_{}_.json".format(utils.get_date(), results["config"]["seed"])
25
with open(os.path.join(folder_path, file_path), "w+") as f:
26
- json.dump(results, f)
+ json.dump(results, f, indent=2)
27
28
29
def extract(paths, avg_inc=False):
0 commit comments