1616def main ():
1717 # Set up the cosmological likelihood
1818 cobaya_input_file = './cosmo_input/LCDM_Planck_DESI.yaml'
19- likelihood_name = 'Planck_DESI_LCDM '
19+ likelihood_name = 'Planck_DESI_LCDM_z025 '
2020
2121 start = time .time ()
2222 print ("Starting BOBE run..." )
@@ -27,14 +27,14 @@ def main():
2727 likelihood_name = likelihood_name ,
2828 confidence_for_unbounded = 0.9999995 ,
2929 resume = False ,
30- resume_file = f'./results/{ likelihood_name } ' ,
31- save_dir = './results/' ,
30+ resume_file = f'./results/LCDM/ { likelihood_name } ' ,
31+ save_dir = './results/LCDM/ ' ,
3232 save = True ,
3333 verbosity = 'INFO' ,
3434 n_cobaya_init = 8 ,
3535 n_sobol_init = 32 ,
3636 optimizer = 'scipy' ,
37- gp_kwargs = {'lengthscale_prior' : None , 'lengthscale_bounds' : [1e-2 ,4 . ]},
37+ gp_kwargs = {'lengthscale_prior' : None , 'lengthscale_bounds' : [1e-2 ,5 . ]},
3838 use_clf = True ,
3939 clf_type = 'svm' ,
4040 seed = 42 ,
@@ -45,15 +45,15 @@ def main():
4545 min_evals = 750 ,
4646 max_evals = 2500 ,
4747 max_gp_size = 1500 ,
48- convergence_n_iters = 1 ,
49- fit_n_points = 20 ,
48+ convergence_n_iters = 2 ,
49+ fit_n_points = 10 ,
5050 batch_size = 5 ,
5151 ns_n_points = 10 ,
5252 num_hmc_warmup = 512 ,
53- num_hmc_samples = 4000 ,
53+ num_hmc_samples = 4096 ,
5454 mc_points_size = 512 ,
5555 num_chains = 6 ,
56- logz_threshold = 0.5 ,
56+ logz_threshold = 0.25 ,
5757 do_final_ns = True ,
5858 )
5959
@@ -109,7 +109,7 @@ def main():
109109 contour_colors = ['#006FED' , 'black' ], contour_lws = [1 , 1.5 ],
110110 params = param_list_LCDM ,
111111 legend_labels = ['BOBE' , 'MCMC' ])
112- g .export (f'./results/{ likelihood .name } _cosmo .pdf' )
112+ g .export (f'./results/LCDM/ { likelihood .name } _cosmo_posteriors .pdf' )
113113
114114 # Create parameter samples plot - all parameters
115115 print ("Creating full parameter samples plot..." )
@@ -120,7 +120,7 @@ def main():
120120 g .triangle_plot ([BOBE_Samples ,reference_samples ], filled = [True , False ],
121121 contour_colors = ['#006FED' , 'black' ], contour_lws = [1 , 1.5 ],
122122 legend_labels = ['BOBE' , 'MCMC' ])
123- g .export (f'./results/{ likelihood .name } _full .pdf' )
123+ g .export (f'./results/LCDM/ { likelihood .name } _full_posteriors .pdf' )
124124
125125 # Print timing analysis
126126 print ("DETAILED TIMING ANALYSIS" )
@@ -145,7 +145,7 @@ def main():
145145 ax .set_yscale ('log' )
146146 ax .set_xlabel (r'Iteration' )
147147 ax .set_ylabel (r'Acquisition Value' )
148- plt .savefig (f"./results/{ likelihood .name } _acquisition.pdf" , bbox_inches = 'tight' )
148+ plt .savefig (f"./results/LCDM/ { likelihood .name } _acquisition.pdf" , bbox_inches = 'tight' )
149149
150150if __name__ == "__main__" :
151151 main ()
0 commit comments