PROJECT_PATH=os.path.realpath(os.path.join(os.path.dirname(__file__),"..")) logfile = os.path.join(PROJECT_PATH,"project/results/exp1.log") resultdir = os.path.join(PROJECT_PATH,"project/results/") print "EXPERIMENT1 started....." gl("Building the run queue", logfile) runs = [] counter = 109 for T in [75, 100, 150, 200, 300]: gl("Setting up iteration with T="+str(T), logfile) counter +=1 r = rungen(counter, T=T, NITER=100, SEED=1) runs.append(r) # run the runs ! for run in runs: gl("Starting run "+str(run["name"]), logfile) gl("Run description: "+str(run), logfile) start_time = datetime.datetime.now() gl("start time: "+str(start_time), logfile) os.chdir(run["rundir"]) (out,err) = subprocess.Popen(run["runcommand"], shell=True, \ stdout=subprocess.PIPE, \
# print "EXPERIMENT2 started....." gl("Building the run queue", logfile) # prepare the run queue runs = [] counter = 200 for NITER in [5, 10, 20, 30, 50, 75, 100, 150, 200, 300]: gl("Setting up iteration with NITER="+str(NITER), logfile) counter +=1 r = rungen(counter, T=20, NITER=NITER, SEED=1) runs.append(r) # run the runs ! for run in runs: gl("Starting run "+str(run["name"]), logfile) gl("Run description: "+str(run), logfile) start_time = datetime.datetime.now() gl("start time: "+str(start_time), logfile) os.chdir(run["rundir"]) (out,err) = subprocess.Popen(run["runcommand"], shell=True, \ stdout=subprocess.PIPE, \ stderr=subprocess.PIPE \
# perplexity PROJECT_PATH = os.path.realpath(os.path.join(os.path.dirname(__file__), "..")) logfile = os.path.join(PROJECT_PATH, "project/results/exp1.log") resultdir = os.path.join(PROJECT_PATH, "project/results/") print "EXPERIMENT3 started....." gl("Building the run queue", logfile) runs = [] counter = 300 for T in [5, 10, 15, 20, 30]: #, 75, 100, 150, 200, 300]: gl("Setting up iteration with T=" + str(T), logfile) counter += 1 r = rungen(counter, T=T, NITER=50, SEED=1) runs.append(r) # run the runs ! for run in runs: gl("Starting run " + str(run["name"]), logfile) gl("Run description: " + str(run), logfile) start_time = datetime.datetime.now() gl("start time: " + str(start_time), logfile) os.chdir(run["rundir"]) (out,err) = subprocess.Popen(run["runcommand"], shell=True, \ stdout=subprocess.PIPE, \ stderr=subprocess.PIPE \