def run_hpo(numsplits=6, cuda=False, gpu=0): ranges = {"encdim": [128, 256, 400], "dropout": [.25, .5], "smoothing": [0., .1, .2], "epochs": [50, 60, 70] } results = q.run_hpo_cv(run, ranges, numcvfolds=numsplits, path=__file__+".hpo", cuda=cuda, gpu=gpu) print(results["best"])
def run_hpo(numsplits=6, cuda=False, gpu=0): ranges = {"encdim": [256, 400], "dropout": [.25, .4], "smoothing": [.1], "epochs": [60, 75], "beta": [0.5, 0.3, 0.7], } results = q.run_hpo_cv(run, ranges, numcvfolds=numsplits, path=__file__+".hpo", cuda=cuda, gpu=gpu) print(results["best"])