omniopt2 8467__py3-none-any.whl → 8469__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of omniopt2 might be problematic. Click here for more details.
- .omniopt.py +36 -40
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.omniopt.py +36 -40
- {omniopt2-8467.dist-info → omniopt2-8469.dist-info}/METADATA +1 -1
- {omniopt2-8467.dist-info → omniopt2-8469.dist-info}/RECORD +36 -36
- omniopt2.egg-info/PKG-INFO +1 -1
- pyproject.toml +1 -1
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.colorfunctions.sh +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.general.sh +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.helpers.py +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.omniopt_plot_cpu_ram_usage.py +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.omniopt_plot_general.py +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.omniopt_plot_gpu_usage.py +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.omniopt_plot_kde.py +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.omniopt_plot_scatter.py +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.omniopt_plot_scatter_generation_method.py +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.omniopt_plot_scatter_hex.py +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.omniopt_plot_time_and_exit_code.py +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.omniopt_plot_trial_index_result.py +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.omniopt_plot_worker.py +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.random_generator.py +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.shellscript_functions +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/.tpe.py +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/LICENSE +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/apt-dependencies.txt +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/omniopt +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/omniopt_docker +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/omniopt_evaluate +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/omniopt_plot +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/omniopt_share +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/pylint.rc +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/requirements.txt +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/setup.py +0 -0
- {omniopt2-8467.data → omniopt2-8469.data}/data/bin/test_requirements.txt +0 -0
- {omniopt2-8467.dist-info → omniopt2-8469.dist-info}/WHEEL +0 -0
- {omniopt2-8467.dist-info → omniopt2-8469.dist-info}/licenses/LICENSE +0 -0
- {omniopt2-8467.dist-info → omniopt2-8469.dist-info}/top_level.txt +0 -0
.omniopt.py
CHANGED
|
@@ -5607,10 +5607,6 @@ def wait_for_checkpoint_file(checkpoint_file: str) -> None:
|
|
|
5607
5607
|
elapsed = int(time.time() - start_time)
|
|
5608
5608
|
console.print(f"[green]Checkpoint file found after {elapsed} seconds[/green] ")
|
|
5609
5609
|
|
|
5610
|
-
def __get_experiment_parameters__check_ax_client() -> None:
|
|
5611
|
-
if not ax_client:
|
|
5612
|
-
_fatal_error("Something went wrong with the ax_client", 9)
|
|
5613
|
-
|
|
5614
5610
|
def validate_experiment_parameters() -> None:
|
|
5615
5611
|
if experiment_parameters is None:
|
|
5616
5612
|
print_red("Error: experiment_parameters is None.")
|
|
@@ -5633,9 +5629,9 @@ def validate_experiment_parameters() -> None:
|
|
|
5633
5629
|
print_red(f"Error: Missing key '{key}' at level: {current_level}")
|
|
5634
5630
|
my_exit(95)
|
|
5635
5631
|
|
|
5636
|
-
def
|
|
5632
|
+
def load_from_checkpoint(continue_previous_job: str, cli_params_experiment_parameters: Optional[dict | list]) -> Tuple[Any, str, str]:
|
|
5637
5633
|
if not ax_client:
|
|
5638
|
-
print_red("
|
|
5634
|
+
print_red("load_from_checkpoint: ax_client was None")
|
|
5639
5635
|
my_exit(101)
|
|
5640
5636
|
return {}, "", ""
|
|
5641
5637
|
|
|
@@ -5682,7 +5678,7 @@ def __get_experiment_parameters__load_from_checkpoint(continue_previous_job: str
|
|
|
5682
5678
|
if experiment_constraints:
|
|
5683
5679
|
|
|
5684
5680
|
if not experiment_parameters:
|
|
5685
|
-
print_red("
|
|
5681
|
+
print_red("load_from_checkpoint: experiment_parameters was None")
|
|
5686
5682
|
|
|
5687
5683
|
return {}, "", ""
|
|
5688
5684
|
|
|
@@ -5694,9 +5690,9 @@ def __get_experiment_parameters__load_from_checkpoint(continue_previous_job: str
|
|
|
5694
5690
|
|
|
5695
5691
|
return experiment_args, gpu_string, gpu_color
|
|
5696
5692
|
|
|
5697
|
-
def
|
|
5693
|
+
def create_new_experiment() -> Tuple[dict, str, str]:
|
|
5698
5694
|
if ax_client is None:
|
|
5699
|
-
print_red("
|
|
5695
|
+
print_red("create_new_experiment: ax_client is None")
|
|
5700
5696
|
my_exit(101)
|
|
5701
5697
|
|
|
5702
5698
|
return {}, "", ""
|
|
@@ -5740,12 +5736,12 @@ def __get_experiment_parameters__create_new_experiment() -> Tuple[dict, str, str
|
|
|
5740
5736
|
def get_experiment_parameters(cli_params_experiment_parameters: Optional[dict | list]) -> Optional[Tuple[AxClient, dict, str, str]]:
|
|
5741
5737
|
continue_previous_job = args.worker_generator_path or args.continue_previous_job
|
|
5742
5738
|
|
|
5743
|
-
|
|
5739
|
+
check_ax_client()
|
|
5744
5740
|
|
|
5745
5741
|
if continue_previous_job:
|
|
5746
|
-
experiment_args, gpu_string, gpu_color =
|
|
5742
|
+
experiment_args, gpu_string, gpu_color = load_from_checkpoint(continue_previous_job, cli_params_experiment_parameters)
|
|
5747
5743
|
else:
|
|
5748
|
-
experiment_args, gpu_string, gpu_color =
|
|
5744
|
+
experiment_args, gpu_string, gpu_color = create_new_experiment()
|
|
5749
5745
|
|
|
5750
5746
|
return ax_client, experiment_args, gpu_string, gpu_color
|
|
5751
5747
|
|
|
@@ -6594,42 +6590,42 @@ def update_global_job_counters(cnt: int) -> None:
|
|
|
6594
6590
|
set_max_eval(max_eval + cnt)
|
|
6595
6591
|
set_nr_inserted_jobs(NR_INSERTED_JOBS + cnt)
|
|
6596
6592
|
|
|
6597
|
-
def
|
|
6593
|
+
def update_status(__status: Optional[Any], base_str: Optional[str], new_text: str) -> None:
|
|
6598
6594
|
if __status and base_str:
|
|
6599
6595
|
__status.update(f"{base_str}: {new_text}")
|
|
6600
6596
|
|
|
6601
|
-
def
|
|
6597
|
+
def check_ax_client() -> None:
|
|
6602
6598
|
if ax_client is None or not ax_client:
|
|
6603
6599
|
_fatal_error("insert_job_into_ax_client: ax_client was not defined where it should have been", 101)
|
|
6604
6600
|
|
|
6605
|
-
def
|
|
6601
|
+
def attach_trial(arm_params: dict) -> Tuple[Any, int]:
|
|
6606
6602
|
if ax_client is None:
|
|
6607
|
-
raise RuntimeError("
|
|
6603
|
+
raise RuntimeError("attach_trial: ax_client was empty")
|
|
6608
6604
|
|
|
6609
6605
|
new_trial = ax_client.attach_trial(arm_params)
|
|
6610
6606
|
if not isinstance(new_trial, tuple) or len(new_trial) < 2:
|
|
6611
6607
|
raise RuntimeError("attach_trial didn't return the expected tuple")
|
|
6612
6608
|
return new_trial
|
|
6613
6609
|
|
|
6614
|
-
def
|
|
6610
|
+
def get_trial_by_index(trial_idx: int) -> Any:
|
|
6615
6611
|
if ax_client is None:
|
|
6616
|
-
raise RuntimeError("
|
|
6612
|
+
raise RuntimeError("get_trial_by_index: ax_client was empty")
|
|
6617
6613
|
|
|
6618
6614
|
trial = ax_client.experiment.trials.get(trial_idx)
|
|
6619
6615
|
if trial is None:
|
|
6620
6616
|
raise RuntimeError(f"Trial with index {trial_idx} not found")
|
|
6621
6617
|
return trial
|
|
6622
6618
|
|
|
6623
|
-
def
|
|
6619
|
+
def create_generator_run(arm_params: dict, trial_idx: int, new_job_type: str) -> GeneratorRun:
|
|
6624
6620
|
arm = Arm(parameters=arm_params, name=f'{trial_idx}_0')
|
|
6625
6621
|
return GeneratorRun(arms=[arm], generation_node_name=new_job_type)
|
|
6626
6622
|
|
|
6627
|
-
def
|
|
6623
|
+
def complete_trial_if_result(trial_idx: int, result: dict, __status: Optional[Any], base_str: Optional[str]) -> None:
|
|
6628
6624
|
if ax_client is None:
|
|
6629
|
-
raise RuntimeError("
|
|
6625
|
+
raise RuntimeError("complete_trial_if_result: ax_client was empty")
|
|
6630
6626
|
|
|
6631
6627
|
if f"{result}" != "":
|
|
6632
|
-
|
|
6628
|
+
update_status(__status, base_str, "Completing trial")
|
|
6633
6629
|
is_ok = True
|
|
6634
6630
|
|
|
6635
6631
|
for keyname in result.keys():
|
|
@@ -6638,19 +6634,19 @@ def __insert_job_into_ax_client__complete_trial_if_result(trial_idx: int, result
|
|
|
6638
6634
|
|
|
6639
6635
|
if is_ok:
|
|
6640
6636
|
ax_client.complete_trial(trial_index=trial_idx, raw_data=result)
|
|
6641
|
-
|
|
6637
|
+
update_status(__status, base_str, "Completed trial")
|
|
6642
6638
|
else:
|
|
6643
6639
|
print_debug("Empty job encountered")
|
|
6644
6640
|
else:
|
|
6645
|
-
|
|
6641
|
+
update_status(__status, base_str, "Found trial without result. Not adding it.")
|
|
6646
6642
|
|
|
6647
|
-
def
|
|
6643
|
+
def save_results_if_needed(__status: Optional[Any], base_str: Optional[str]) -> None:
|
|
6648
6644
|
if not args.worker_generator_path:
|
|
6649
|
-
|
|
6645
|
+
update_status(__status, base_str, f"Saving {RESULTS_CSV_FILENAME}")
|
|
6650
6646
|
save_results_csv()
|
|
6651
|
-
|
|
6647
|
+
update_status(__status, base_str, f"Saved {RESULTS_CSV_FILENAME}")
|
|
6652
6648
|
|
|
6653
|
-
def
|
|
6649
|
+
def handle_insert_job_error(e: Exception, arm_params: dict) -> bool:
|
|
6654
6650
|
parsed_error = parse_parameter_type_error(e)
|
|
6655
6651
|
if parsed_error is not None:
|
|
6656
6652
|
param = parsed_error["parameter_name"]
|
|
@@ -6675,35 +6671,35 @@ def insert_job_into_ax_client(
|
|
|
6675
6671
|
__status: Optional[Any] = None,
|
|
6676
6672
|
base_str: Optional[str] = None
|
|
6677
6673
|
) -> bool:
|
|
6678
|
-
|
|
6674
|
+
check_ax_client()
|
|
6679
6675
|
|
|
6680
6676
|
done_converting = False
|
|
6681
6677
|
while not done_converting:
|
|
6682
6678
|
try:
|
|
6683
|
-
|
|
6679
|
+
update_status(__status, base_str, "Checking ax client")
|
|
6684
6680
|
if ax_client is None:
|
|
6685
6681
|
return False
|
|
6686
6682
|
|
|
6687
|
-
|
|
6688
|
-
_, new_trial_idx =
|
|
6683
|
+
update_status(__status, base_str, "Attaching new trial")
|
|
6684
|
+
_, new_trial_idx = attach_trial(arm_params)
|
|
6689
6685
|
|
|
6690
|
-
|
|
6691
|
-
trial =
|
|
6692
|
-
|
|
6686
|
+
update_status(__status, base_str, "Getting new trial")
|
|
6687
|
+
trial = get_trial_by_index(new_trial_idx)
|
|
6688
|
+
update_status(__status, base_str, "Got new trial")
|
|
6693
6689
|
|
|
6694
|
-
|
|
6695
|
-
manual_generator_run =
|
|
6690
|
+
update_status(__status, base_str, "Creating new arm")
|
|
6691
|
+
manual_generator_run = create_generator_run(arm_params, new_trial_idx, new_job_type)
|
|
6696
6692
|
trial._generator_run = manual_generator_run
|
|
6697
6693
|
fool_linter(trial._generator_run)
|
|
6698
6694
|
|
|
6699
|
-
|
|
6695
|
+
complete_trial_if_result(new_trial_idx, result, __status, base_str)
|
|
6700
6696
|
done_converting = True
|
|
6701
6697
|
|
|
6702
|
-
|
|
6698
|
+
save_results_if_needed(__status, base_str)
|
|
6703
6699
|
return True
|
|
6704
6700
|
|
|
6705
6701
|
except ax.exceptions.core.UnsupportedError as e:
|
|
6706
|
-
if not
|
|
6702
|
+
if not handle_insert_job_error(e, arm_params):
|
|
6707
6703
|
break
|
|
6708
6704
|
|
|
6709
6705
|
return False
|
|
@@ -5607,10 +5607,6 @@ def wait_for_checkpoint_file(checkpoint_file: str) -> None:
|
|
|
5607
5607
|
elapsed = int(time.time() - start_time)
|
|
5608
5608
|
console.print(f"[green]Checkpoint file found after {elapsed} seconds[/green] ")
|
|
5609
5609
|
|
|
5610
|
-
def __get_experiment_parameters__check_ax_client() -> None:
|
|
5611
|
-
if not ax_client:
|
|
5612
|
-
_fatal_error("Something went wrong with the ax_client", 9)
|
|
5613
|
-
|
|
5614
5610
|
def validate_experiment_parameters() -> None:
|
|
5615
5611
|
if experiment_parameters is None:
|
|
5616
5612
|
print_red("Error: experiment_parameters is None.")
|
|
@@ -5633,9 +5629,9 @@ def validate_experiment_parameters() -> None:
|
|
|
5633
5629
|
print_red(f"Error: Missing key '{key}' at level: {current_level}")
|
|
5634
5630
|
my_exit(95)
|
|
5635
5631
|
|
|
5636
|
-
def
|
|
5632
|
+
def load_from_checkpoint(continue_previous_job: str, cli_params_experiment_parameters: Optional[dict | list]) -> Tuple[Any, str, str]:
|
|
5637
5633
|
if not ax_client:
|
|
5638
|
-
print_red("
|
|
5634
|
+
print_red("load_from_checkpoint: ax_client was None")
|
|
5639
5635
|
my_exit(101)
|
|
5640
5636
|
return {}, "", ""
|
|
5641
5637
|
|
|
@@ -5682,7 +5678,7 @@ def __get_experiment_parameters__load_from_checkpoint(continue_previous_job: str
|
|
|
5682
5678
|
if experiment_constraints:
|
|
5683
5679
|
|
|
5684
5680
|
if not experiment_parameters:
|
|
5685
|
-
print_red("
|
|
5681
|
+
print_red("load_from_checkpoint: experiment_parameters was None")
|
|
5686
5682
|
|
|
5687
5683
|
return {}, "", ""
|
|
5688
5684
|
|
|
@@ -5694,9 +5690,9 @@ def __get_experiment_parameters__load_from_checkpoint(continue_previous_job: str
|
|
|
5694
5690
|
|
|
5695
5691
|
return experiment_args, gpu_string, gpu_color
|
|
5696
5692
|
|
|
5697
|
-
def
|
|
5693
|
+
def create_new_experiment() -> Tuple[dict, str, str]:
|
|
5698
5694
|
if ax_client is None:
|
|
5699
|
-
print_red("
|
|
5695
|
+
print_red("create_new_experiment: ax_client is None")
|
|
5700
5696
|
my_exit(101)
|
|
5701
5697
|
|
|
5702
5698
|
return {}, "", ""
|
|
@@ -5740,12 +5736,12 @@ def __get_experiment_parameters__create_new_experiment() -> Tuple[dict, str, str
|
|
|
5740
5736
|
def get_experiment_parameters(cli_params_experiment_parameters: Optional[dict | list]) -> Optional[Tuple[AxClient, dict, str, str]]:
|
|
5741
5737
|
continue_previous_job = args.worker_generator_path or args.continue_previous_job
|
|
5742
5738
|
|
|
5743
|
-
|
|
5739
|
+
check_ax_client()
|
|
5744
5740
|
|
|
5745
5741
|
if continue_previous_job:
|
|
5746
|
-
experiment_args, gpu_string, gpu_color =
|
|
5742
|
+
experiment_args, gpu_string, gpu_color = load_from_checkpoint(continue_previous_job, cli_params_experiment_parameters)
|
|
5747
5743
|
else:
|
|
5748
|
-
experiment_args, gpu_string, gpu_color =
|
|
5744
|
+
experiment_args, gpu_string, gpu_color = create_new_experiment()
|
|
5749
5745
|
|
|
5750
5746
|
return ax_client, experiment_args, gpu_string, gpu_color
|
|
5751
5747
|
|
|
@@ -6594,42 +6590,42 @@ def update_global_job_counters(cnt: int) -> None:
|
|
|
6594
6590
|
set_max_eval(max_eval + cnt)
|
|
6595
6591
|
set_nr_inserted_jobs(NR_INSERTED_JOBS + cnt)
|
|
6596
6592
|
|
|
6597
|
-
def
|
|
6593
|
+
def update_status(__status: Optional[Any], base_str: Optional[str], new_text: str) -> None:
|
|
6598
6594
|
if __status and base_str:
|
|
6599
6595
|
__status.update(f"{base_str}: {new_text}")
|
|
6600
6596
|
|
|
6601
|
-
def
|
|
6597
|
+
def check_ax_client() -> None:
|
|
6602
6598
|
if ax_client is None or not ax_client:
|
|
6603
6599
|
_fatal_error("insert_job_into_ax_client: ax_client was not defined where it should have been", 101)
|
|
6604
6600
|
|
|
6605
|
-
def
|
|
6601
|
+
def attach_trial(arm_params: dict) -> Tuple[Any, int]:
|
|
6606
6602
|
if ax_client is None:
|
|
6607
|
-
raise RuntimeError("
|
|
6603
|
+
raise RuntimeError("attach_trial: ax_client was empty")
|
|
6608
6604
|
|
|
6609
6605
|
new_trial = ax_client.attach_trial(arm_params)
|
|
6610
6606
|
if not isinstance(new_trial, tuple) or len(new_trial) < 2:
|
|
6611
6607
|
raise RuntimeError("attach_trial didn't return the expected tuple")
|
|
6612
6608
|
return new_trial
|
|
6613
6609
|
|
|
6614
|
-
def
|
|
6610
|
+
def get_trial_by_index(trial_idx: int) -> Any:
|
|
6615
6611
|
if ax_client is None:
|
|
6616
|
-
raise RuntimeError("
|
|
6612
|
+
raise RuntimeError("get_trial_by_index: ax_client was empty")
|
|
6617
6613
|
|
|
6618
6614
|
trial = ax_client.experiment.trials.get(trial_idx)
|
|
6619
6615
|
if trial is None:
|
|
6620
6616
|
raise RuntimeError(f"Trial with index {trial_idx} not found")
|
|
6621
6617
|
return trial
|
|
6622
6618
|
|
|
6623
|
-
def
|
|
6619
|
+
def create_generator_run(arm_params: dict, trial_idx: int, new_job_type: str) -> GeneratorRun:
|
|
6624
6620
|
arm = Arm(parameters=arm_params, name=f'{trial_idx}_0')
|
|
6625
6621
|
return GeneratorRun(arms=[arm], generation_node_name=new_job_type)
|
|
6626
6622
|
|
|
6627
|
-
def
|
|
6623
|
+
def complete_trial_if_result(trial_idx: int, result: dict, __status: Optional[Any], base_str: Optional[str]) -> None:
|
|
6628
6624
|
if ax_client is None:
|
|
6629
|
-
raise RuntimeError("
|
|
6625
|
+
raise RuntimeError("complete_trial_if_result: ax_client was empty")
|
|
6630
6626
|
|
|
6631
6627
|
if f"{result}" != "":
|
|
6632
|
-
|
|
6628
|
+
update_status(__status, base_str, "Completing trial")
|
|
6633
6629
|
is_ok = True
|
|
6634
6630
|
|
|
6635
6631
|
for keyname in result.keys():
|
|
@@ -6638,19 +6634,19 @@ def __insert_job_into_ax_client__complete_trial_if_result(trial_idx: int, result
|
|
|
6638
6634
|
|
|
6639
6635
|
if is_ok:
|
|
6640
6636
|
ax_client.complete_trial(trial_index=trial_idx, raw_data=result)
|
|
6641
|
-
|
|
6637
|
+
update_status(__status, base_str, "Completed trial")
|
|
6642
6638
|
else:
|
|
6643
6639
|
print_debug("Empty job encountered")
|
|
6644
6640
|
else:
|
|
6645
|
-
|
|
6641
|
+
update_status(__status, base_str, "Found trial without result. Not adding it.")
|
|
6646
6642
|
|
|
6647
|
-
def
|
|
6643
|
+
def save_results_if_needed(__status: Optional[Any], base_str: Optional[str]) -> None:
|
|
6648
6644
|
if not args.worker_generator_path:
|
|
6649
|
-
|
|
6645
|
+
update_status(__status, base_str, f"Saving {RESULTS_CSV_FILENAME}")
|
|
6650
6646
|
save_results_csv()
|
|
6651
|
-
|
|
6647
|
+
update_status(__status, base_str, f"Saved {RESULTS_CSV_FILENAME}")
|
|
6652
6648
|
|
|
6653
|
-
def
|
|
6649
|
+
def handle_insert_job_error(e: Exception, arm_params: dict) -> bool:
|
|
6654
6650
|
parsed_error = parse_parameter_type_error(e)
|
|
6655
6651
|
if parsed_error is not None:
|
|
6656
6652
|
param = parsed_error["parameter_name"]
|
|
@@ -6675,35 +6671,35 @@ def insert_job_into_ax_client(
|
|
|
6675
6671
|
__status: Optional[Any] = None,
|
|
6676
6672
|
base_str: Optional[str] = None
|
|
6677
6673
|
) -> bool:
|
|
6678
|
-
|
|
6674
|
+
check_ax_client()
|
|
6679
6675
|
|
|
6680
6676
|
done_converting = False
|
|
6681
6677
|
while not done_converting:
|
|
6682
6678
|
try:
|
|
6683
|
-
|
|
6679
|
+
update_status(__status, base_str, "Checking ax client")
|
|
6684
6680
|
if ax_client is None:
|
|
6685
6681
|
return False
|
|
6686
6682
|
|
|
6687
|
-
|
|
6688
|
-
_, new_trial_idx =
|
|
6683
|
+
update_status(__status, base_str, "Attaching new trial")
|
|
6684
|
+
_, new_trial_idx = attach_trial(arm_params)
|
|
6689
6685
|
|
|
6690
|
-
|
|
6691
|
-
trial =
|
|
6692
|
-
|
|
6686
|
+
update_status(__status, base_str, "Getting new trial")
|
|
6687
|
+
trial = get_trial_by_index(new_trial_idx)
|
|
6688
|
+
update_status(__status, base_str, "Got new trial")
|
|
6693
6689
|
|
|
6694
|
-
|
|
6695
|
-
manual_generator_run =
|
|
6690
|
+
update_status(__status, base_str, "Creating new arm")
|
|
6691
|
+
manual_generator_run = create_generator_run(arm_params, new_trial_idx, new_job_type)
|
|
6696
6692
|
trial._generator_run = manual_generator_run
|
|
6697
6693
|
fool_linter(trial._generator_run)
|
|
6698
6694
|
|
|
6699
|
-
|
|
6695
|
+
complete_trial_if_result(new_trial_idx, result, __status, base_str)
|
|
6700
6696
|
done_converting = True
|
|
6701
6697
|
|
|
6702
|
-
|
|
6698
|
+
save_results_if_needed(__status, base_str)
|
|
6703
6699
|
return True
|
|
6704
6700
|
|
|
6705
6701
|
except ax.exceptions.core.UnsupportedError as e:
|
|
6706
|
-
if not
|
|
6702
|
+
if not handle_insert_job_error(e, arm_params):
|
|
6707
6703
|
break
|
|
6708
6704
|
|
|
6709
6705
|
return False
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
.general.sh,sha256=uyGMN8xNToQ0v50KoiYxm6jRmgf0orroOaodM_Nuq30,2107
|
|
4
4
|
.gitignore,sha256=GmSD6dE4AqN4_fhQUdAzydst60s3w3ePYxetTr3Et7c,3776
|
|
5
5
|
.helpers.py,sha256=posn69_5fnlCqU-jRTFaED0LoeC2uuQe6r9NuqvfHm0,31456
|
|
6
|
-
.omniopt.py,sha256=
|
|
6
|
+
.omniopt.py,sha256=pEwMGtpW0J_ijGXwN-tyOhod8RsJDX3Gpb6KLQndiV0,438911
|
|
7
7
|
.omniopt_plot_cpu_ram_usage.py,sha256=DbOAmdrbcZtsMnHJgHfeRngjtv6zX5J0axyua_dYezc,3932
|
|
8
8
|
.omniopt_plot_general.py,sha256=3iy-bPef8I5rTB3KRz-TuleMdgKDmVZ6c8LuNQhNwu0,6810
|
|
9
9
|
.omniopt_plot_gpu_usage.py,sha256=ojxVicwSoiyl7f3c-6lLuT2EpyPcSJKEcbp75LgDY2k,5107
|
|
@@ -26,46 +26,46 @@ omniopt_docker,sha256=XyEGZ71l-tUlAYUluVF39fGO3NLDRa8UyrwxmAsXWNI,3542
|
|
|
26
26
|
omniopt_evaluate,sha256=9oBh0_ikCuIz_aJQZrN0j39NDiIDYoSvEFmSVIoFjJE,23842
|
|
27
27
|
omniopt_plot,sha256=ze6Dz2k0w5jyUnfatAA7dk59nzQjKC_G36tDvJGWsfA,13696
|
|
28
28
|
omniopt_share,sha256=2KZcTjN_7vcxNjb4sLLiWgUc38pl2-6-Qwmgq6_nTb0,13856
|
|
29
|
-
pyproject.toml,sha256=
|
|
29
|
+
pyproject.toml,sha256=QWeqFblcFYVnsMg3BoHPn3IjDXObex5shOlNaeprkEg,397
|
|
30
30
|
requirements.txt,sha256=0ViG5vdrDP--nr7mbZbV0ayJc6a5APNlTiMqGEZB6qE,292
|
|
31
31
|
setup.cfg,sha256=HEc8uu6NpfxG5_AVh5SvXOpEFMNKPPPxgMIAH144vT4,38
|
|
32
32
|
test_requirements.txt,sha256=jpyZzAwbWR_qnoRqWvpBB5MUjIX9jVwynX2D-B-r8aA,487
|
|
33
33
|
.tests/pylint.rc,sha256=ZGtZjVgJtK_6tdwgscJneS-LUeDASjSVVz6veCkp9rw,22631
|
|
34
|
-
omniopt2-
|
|
35
|
-
omniopt2-
|
|
36
|
-
omniopt2-
|
|
37
|
-
omniopt2-
|
|
38
|
-
omniopt2-
|
|
39
|
-
omniopt2-
|
|
40
|
-
omniopt2-
|
|
41
|
-
omniopt2-
|
|
42
|
-
omniopt2-
|
|
43
|
-
omniopt2-
|
|
44
|
-
omniopt2-
|
|
45
|
-
omniopt2-
|
|
46
|
-
omniopt2-
|
|
47
|
-
omniopt2-
|
|
48
|
-
omniopt2-
|
|
49
|
-
omniopt2-
|
|
50
|
-
omniopt2-
|
|
51
|
-
omniopt2-
|
|
52
|
-
omniopt2-
|
|
53
|
-
omniopt2-
|
|
54
|
-
omniopt2-
|
|
55
|
-
omniopt2-
|
|
56
|
-
omniopt2-
|
|
57
|
-
omniopt2-
|
|
58
|
-
omniopt2-
|
|
59
|
-
omniopt2-
|
|
60
|
-
omniopt2-
|
|
61
|
-
omniopt2-
|
|
62
|
-
omniopt2-
|
|
63
|
-
omniopt2.egg-info/PKG-INFO,sha256=
|
|
34
|
+
omniopt2-8469.data/data/bin/.colorfunctions.sh,sha256=xxc08V3Fh_0Je20fkJMRO14u9VCSvMyOiMaDfioEyCY,1098
|
|
35
|
+
omniopt2-8469.data/data/bin/.general.sh,sha256=uyGMN8xNToQ0v50KoiYxm6jRmgf0orroOaodM_Nuq30,2107
|
|
36
|
+
omniopt2-8469.data/data/bin/.helpers.py,sha256=posn69_5fnlCqU-jRTFaED0LoeC2uuQe6r9NuqvfHm0,31456
|
|
37
|
+
omniopt2-8469.data/data/bin/.omniopt.py,sha256=pEwMGtpW0J_ijGXwN-tyOhod8RsJDX3Gpb6KLQndiV0,438911
|
|
38
|
+
omniopt2-8469.data/data/bin/.omniopt_plot_cpu_ram_usage.py,sha256=DbOAmdrbcZtsMnHJgHfeRngjtv6zX5J0axyua_dYezc,3932
|
|
39
|
+
omniopt2-8469.data/data/bin/.omniopt_plot_general.py,sha256=3iy-bPef8I5rTB3KRz-TuleMdgKDmVZ6c8LuNQhNwu0,6810
|
|
40
|
+
omniopt2-8469.data/data/bin/.omniopt_plot_gpu_usage.py,sha256=ojxVicwSoiyl7f3c-6lLuT2EpyPcSJKEcbp75LgDY2k,5107
|
|
41
|
+
omniopt2-8469.data/data/bin/.omniopt_plot_kde.py,sha256=uRLWr72TDKvj3AqJ0O0AvkKZ1ok1O1QpXnbfQQdo0nA,6873
|
|
42
|
+
omniopt2-8469.data/data/bin/.omniopt_plot_scatter.py,sha256=b0_CIqgyi6PztaUVJRL9X9XBTaOonh-yDH2hRxMGkH0,8403
|
|
43
|
+
omniopt2-8469.data/data/bin/.omniopt_plot_scatter_generation_method.py,sha256=rgKY_w1E516c9UucVaEvaKd8tCnoUq9xg-RrYSDzYEQ,4289
|
|
44
|
+
omniopt2-8469.data/data/bin/.omniopt_plot_scatter_hex.py,sha256=UKjw40c1eumgEcf0xqB-_SakX5PB6HD3u4VwBxbsgQo,10279
|
|
45
|
+
omniopt2-8469.data/data/bin/.omniopt_plot_time_and_exit_code.py,sha256=WUyl2uI59wsC1eSX_5uJHOrqcF-s5cUDIEu8u3IFMLU,6462
|
|
46
|
+
omniopt2-8469.data/data/bin/.omniopt_plot_trial_index_result.py,sha256=Xlo_dYTQNnxPhYakmgMM58CCcW9gUoXZ3gLap9RScTY,4578
|
|
47
|
+
omniopt2-8469.data/data/bin/.omniopt_plot_worker.py,sha256=VuluQq4W6KRR5RU08dxmDSFk5mbfDRkRJQFwwcLgAGw,4524
|
|
48
|
+
omniopt2-8469.data/data/bin/.random_generator.py,sha256=ezBBUXpez_QaGdpCglMcJ0KZPdQP0XdX5gnLzO1xhwU,2987
|
|
49
|
+
omniopt2-8469.data/data/bin/.shellscript_functions,sha256=9Yo5j3BBLDNVPwe2uNjHbVCbj3H1v1gC5Ju8KvPXfC4,13624
|
|
50
|
+
omniopt2-8469.data/data/bin/.tpe.py,sha256=93yjviAtxPRYUCpSIShW_H3QQ5JPNcnXNjF0g8zc7Wc,6766
|
|
51
|
+
omniopt2-8469.data/data/bin/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
52
|
+
omniopt2-8469.data/data/bin/apt-dependencies.txt,sha256=X5tBB8ZLW9XaFtRh8B7C2pIkSoxNNawqioDr0QZAtuM,149
|
|
53
|
+
omniopt2-8469.data/data/bin/omniopt,sha256=PCBtM71SYgl-ZweB8XHhb2LQ5Mu7zXa-LfrERU0-RQQ,51404
|
|
54
|
+
omniopt2-8469.data/data/bin/omniopt_docker,sha256=XyEGZ71l-tUlAYUluVF39fGO3NLDRa8UyrwxmAsXWNI,3542
|
|
55
|
+
omniopt2-8469.data/data/bin/omniopt_evaluate,sha256=9oBh0_ikCuIz_aJQZrN0j39NDiIDYoSvEFmSVIoFjJE,23842
|
|
56
|
+
omniopt2-8469.data/data/bin/omniopt_plot,sha256=ze6Dz2k0w5jyUnfatAA7dk59nzQjKC_G36tDvJGWsfA,13696
|
|
57
|
+
omniopt2-8469.data/data/bin/omniopt_share,sha256=2KZcTjN_7vcxNjb4sLLiWgUc38pl2-6-Qwmgq6_nTb0,13856
|
|
58
|
+
omniopt2-8469.data/data/bin/pylint.rc,sha256=ZGtZjVgJtK_6tdwgscJneS-LUeDASjSVVz6veCkp9rw,22631
|
|
59
|
+
omniopt2-8469.data/data/bin/requirements.txt,sha256=0ViG5vdrDP--nr7mbZbV0ayJc6a5APNlTiMqGEZB6qE,292
|
|
60
|
+
omniopt2-8469.data/data/bin/setup.py,sha256=zg7k4jeHXEdaGWGeB1mPC14fFj-hqz1vNimnU0JcMyk,4632
|
|
61
|
+
omniopt2-8469.data/data/bin/test_requirements.txt,sha256=jpyZzAwbWR_qnoRqWvpBB5MUjIX9jVwynX2D-B-r8aA,487
|
|
62
|
+
omniopt2-8469.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
63
|
+
omniopt2.egg-info/PKG-INFO,sha256=zidYoTM3gcW1Nh46haUzFwI8hxy2BOgfX7gSXGT4kWQ,5718
|
|
64
64
|
omniopt2.egg-info/SOURCES.txt,sha256=2mSVIhM8Ncyl5_s8ZFBlb6qjRDbTCQmV9FwVVjp5ROE,795
|
|
65
65
|
omniopt2.egg-info/dependency_links.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
66
66
|
omniopt2.egg-info/requires.txt,sha256=_n-6wV9UtTagGm4wbRDW7FjKoCB0Y4jkb5VbARh6pMU,779
|
|
67
67
|
omniopt2.egg-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
68
|
-
omniopt2-
|
|
69
|
-
omniopt2-
|
|
70
|
-
omniopt2-
|
|
71
|
-
omniopt2-
|
|
68
|
+
omniopt2-8469.dist-info/METADATA,sha256=zidYoTM3gcW1Nh46haUzFwI8hxy2BOgfX7gSXGT4kWQ,5718
|
|
69
|
+
omniopt2-8469.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
70
|
+
omniopt2-8469.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
71
|
+
omniopt2-8469.dist-info/RECORD,,
|
omniopt2.egg-info/PKG-INFO
CHANGED
pyproject.toml
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{omniopt2-8467.data → omniopt2-8469.data}/data/bin/.omniopt_plot_scatter_generation_method.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|