xiyuyi / PyPRIS

This is a python package to perform progressive refinement method for sparse recovery (PRIS)
Other
0 stars 0 forks source link

EPFL_BP 100Bin #99

Open xiyuyi opened 5 years ago

xiyuyi commented 5 years ago

testing on hoffman2 with many conditions: image

    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)