@@ -298,12 +298,13 @@ def run(
298
298
strict_reproducibility = False ,
299
299
n_relaunch = 3 ,
300
300
relaunch_errors = True ,
301
+ exp_root = RESULTS_DIR ,
301
302
):
302
303
303
304
self .set_reproducibility_info (
304
305
strict_reproducibility = strict_reproducibility , comment = self .comment
305
306
)
306
- self .save ()
307
+ self .save (exp_root = exp_root )
307
308
308
309
n_exp = len (self .exp_args_list )
309
310
last_error_count = None
@@ -461,15 +462,22 @@ def find_incomplete(self, include_errors=True):
461
462
for study in self .studies :
462
463
study .find_incomplete (include_errors = include_errors )
463
464
464
- def run (self , n_jobs = 1 , parallel_backend = "ray" , strict_reproducibility = False , n_relaunch = 3 ):
465
+ def run (
466
+ self ,
467
+ n_jobs = 1 ,
468
+ parallel_backend = "ray" ,
469
+ strict_reproducibility = False ,
470
+ n_relaunch = 3 ,
471
+ exp_root = RESULTS_DIR ,
472
+ ):
465
473
466
474
# This sequence of of making directories is important to make sure objects are materialized
467
475
# properly before saving. Otherwise relaunch may not work properly.
468
476
self .make_dir ()
469
477
for study in self .studies :
470
478
study .make_dir (exp_root = self .dir )
471
479
472
- self .save ()
480
+ self .save (exp_root = exp_root )
473
481
self ._run (n_jobs , parallel_backend , strict_reproducibility , n_relaunch )
474
482
_ , summary_df , _ = self .get_results ()
475
483
logger .info ("\n " + str (summary_df ))
0 commit comments