4 from itertools import product
7 def main(command, arg_dict, outfile, remember_file='remember_grid_sweep.RDS'):
9 remember = pyRemembeR.remember.Remember()
10 remember.set_file(remember_file)
11 remember[outfile] = arg_dict
16 for i,p in enumerate(arg_dict.items()):
20 command = command + f" --{k} {{{i}}} "
22 args_list = product(*values)
24 with open(outfile,'w') as of:
25 for args in args_list:
26 of.write(command.format(*args) + '\n')
28 if __name__ == '__main__':