Open xiyuyi opened 5 years ago
testing on hoffman2 with many conditions:
for bgSCF in list([2, 5]): for mu in list([5e6, 1e7, 5e7, 1e8]): for alpha in list([1e-4, 1e-5, 1e-6]): ticket_new = copy.deepcopy(ticket) ticket_new.name = "bgSCF" + str(bgSCF) + "_mu" + str("%1.1e" % mu) + "_alpha" + str("%1.1e" % alpha) ticket_new.bg_scaling_coef = copy.deepcopy(bgSCF) ticket_new.linbreg_alpha.PyPRIS_name = ticket_new.name ticket_new.linbreg_alpha.mu = mu ticket_new.linbreg_alpha.alpha = alpha try: if not os.path.exists("../{}/{}".format(ticket_new.ticket_folder, ticket_new.name)): os.mkdir("../{}/{}".format(ticket_new.ticket_folder, ticket_new.name)) except OSError: pass with open("../{}/{}/Go.pris_ticket".format(ticket_new.ticket_folder, ticket_new.name), "wb") as f: pickle.dump(ticket_new, f, pickle.HIGHEST_PROTOCOL)
testing on hoffman2 with many conditions: