Skip to content

Commit

Permalink
New HO.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadaSanar committed May 9, 2023
1 parent ce56ce5 commit 1055c40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions hper_repetitions_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ def modify_filename_nreps(filename, new_value, param_to_modify_str = '_nreps'):
def repeated_tests(m, starting_point_candidates):


c_eig = [0, 0.1, 0.5, 0.9, 1, 2] # Expected information gain.
c_eig = [0, 0.1, 0.5, 0.75, 0.9, 1, 2] # Expected information gain.
c_exclz = [1, 5, 10, 20] # Size of the exclusion zone in percentage points (max. 100)
c_g = list(cg(np.array([0.01, 0.2, 0.5, 0.6, 0.8, 1]))) # Gradient limit. 0.05#, 0.07, 0.1, 0.2, 0.5, 0.75
c_g = list(cg(np.array([0.01, 0.1, 0.2, 0.5, 0.6, 0.8, 1]))) # Gradient limit. 0.05#, 0.07, 0.1, 0.2, 0.5, 0.75

hyperparams_eig = []
hyperparams_exclz = []
Expand All @@ -169,11 +169,11 @@ def repeated_tests(m, starting_point_candidates):
n_j = len(jitters)


folder = './Results/20230508-noisytarget-noiselesshuman-ho/'
folder = './Results/20230509-noisytarget-noiselesshuman-ho/'
ground_truth = [0.17, 0.03, 0.80] # From C2a paper

bo_params = {'n_repetitions': 25,
'n_rounds': 50,
bo_params = {'n_repetitions': 50,
'n_rounds': 75,
'n_init': 3,
'batch_size': 1,
'materials': ['CsPbI', 'MAPbI', 'FAPbI']
Expand Down Expand Up @@ -514,7 +514,7 @@ def repeated_tests(m, starting_point_candidates):

#print(os.getcwd())

m_total = 124
m_total = 158

# Create a list of seeds for repetitions (increase max_reps if you need
# more repetitions than the current max_rep value is).
Expand Down
4 changes: 2 additions & 2 deletions hper_repetitions_parallel_noiseless.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def repeated_tests(m, starting_point_candidates):
ground_truth = [0.17, 0.03, 0.80] # From C2a paper

bo_params = {'n_repetitions': 50,
'n_rounds': 75,
'n_rounds': 20,
'n_init': 3,
'batch_size': 1,
'materials': ['CsPbI', 'MAPbI', 'FAPbI']
Expand All @@ -185,7 +185,7 @@ def repeated_tests(m, starting_point_candidates):
save_figs = False
# Choose if noisy queries are being used or exact.
noise_df= False
noise_target = True
noise_target = False

if (m > -1):

Expand Down

0 comments on commit 1055c40

Please sign in to comment.