Skip to content

Commit

Permalink
[MINOR] Minor update of annotations in BOiLS.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntGro committed Mar 6, 2022
1 parent 9e93a13 commit 725fb30
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions BOiLS/core/algos/bo/boils/multi_boils_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def __init__(self, designs_group_id: str, seq_length: int, mapping: str, action_
ard: whether to enable automatic relevance determination
acq: choice of the acquisition function.
objective: quantity to optimize, either lut, level, both or min_improvements
failtol: failure tolerance factor for casmopolitan
failtol: failure tolerance factor for BOiLS
length_init_discrete_factor: length_init_discrete=seq_length * length_init_discrete_factor
input_transformation: input embedding
kernel_type: id of the kernel to use to build surrogate models
Expand Down Expand Up @@ -475,7 +475,7 @@ def multi_boils_exp_get_obj(sequence: List[int], design_file: str, ref_1: float,
if sequence_id not in seq_to_func_dic:
valid = True
try:
log(f"{n_evals}. Evaluate {sequence_id}", header=f"Casmo. -- {get_design_name(design_file)} ({seed})")
log(f"{n_evals}. Evaluate {sequence_id}", header=f"BOiLS. -- {get_design_name(design_file)} ({seed})")
obj_1, obj_2, extra_info = get_design_prop(seq=sequence, design_file=design_file, mapping=mapping,
library_file=library_file, abc_binary=abc_binary,
use_yosys=use_yosys,
Expand Down
2 changes: 1 addition & 1 deletion BOiLS/core/algos/bo/boils/multi_boils_exp_2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ n_parallel=1 # Number of sequences to evaluate in parallel (since we don't do ba

objective='both'

# --- Casmopolitan setup ---
# --- BO setup ---

n_total_evals=200 # Number of acquisitions in total (number of sequences that we will evaluate)
n_initial=20 # Number of initial random sequences to evaluate to build the first surrogate model
Expand Down
2 changes: 1 addition & 1 deletion BOiLS/core/algos/bo/boils/multiseq_boils_exp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ n_parallel=1 # Number of sequences to evaluate in parallel (since we don't do ba

objective='both'

# --- Casmopolitan setup ---
# --- BO setup ---

n_total_evals=200 # Number of acquisitions in total (number of sequences that we will evaluate)
n_initial=20 # Number of initial random sequences to evaluate to build the first surrogate model
Expand Down
2 changes: 1 addition & 1 deletion BOiLS/core/algos/bo/hebo/main_multi_hebo.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def main(designs_group_id: str, seq_length: int, mapping: str, action_space_id:

if __name__ == '__main__':
parser = argparse.ArgumentParser(add_help=True,
description='Performs logic synthesis optimization using CASMOPOLITAN')
description='Performs logic synthesis optimization using HEBO')
parser = add_common_args(parser)
parser.add_argument("--n_parallel", type=int, default=1, help="number of threads to compute the stats")

Expand Down
3 changes: 0 additions & 3 deletions BOiLS/core/algos/seqs_test/multi_seqs_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ seq_length=60
seq_to_test='[6,0,2,6,0,1,6,3,1,6,6,0,2,6,0,1,6,3,1,6,6,0,2,6,0,1,6,3,1,6,6,0,2,6,0,1,6,3,1,6,6,0,2,6,0,1,6,3,1,6,6,0,2,6,0,1,6,3,1,6]'
seq_origin=resyn2_6

#seq_to_test='[4,7,0,0,2,9,10,10,9,10]'
#seq_origin=casmo_1

overwrite=0
if (( overwrite == 0 )); then overwrite=''; else overwrite='--overwrite'; fi

Expand Down

0 comments on commit 725fb30

Please sign in to comment.