omniopt2 7018__tar.gz → 7025__tar.gz
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.
- {omniopt2-7018 → omniopt2-7025}/.omniopt.py +7 -10
- {omniopt2-7018 → omniopt2-7025}/PKG-INFO +1 -1
- {omniopt2-7018 → omniopt2-7025}/omniopt2.egg-info/PKG-INFO +1 -1
- {omniopt2-7018 → omniopt2-7025}/pyproject.toml +1 -1
- {omniopt2-7018 → omniopt2-7025}/.colorfunctions.sh +0 -0
- {omniopt2-7018 → omniopt2-7025}/.dockerignore +0 -0
- {omniopt2-7018 → omniopt2-7025}/.general.sh +0 -0
- {omniopt2-7018 → omniopt2-7025}/.gitignore +0 -0
- {omniopt2-7018 → omniopt2-7025}/.helpers.py +0 -0
- {omniopt2-7018 → omniopt2-7025}/.omniopt_plot_cpu_ram_usage.py +0 -0
- {omniopt2-7018 → omniopt2-7025}/.omniopt_plot_general.py +0 -0
- {omniopt2-7018 → omniopt2-7025}/.omniopt_plot_gpu_usage.py +0 -0
- {omniopt2-7018 → omniopt2-7025}/.omniopt_plot_kde.py +0 -0
- {omniopt2-7018 → omniopt2-7025}/.omniopt_plot_scatter.py +0 -0
- {omniopt2-7018 → omniopt2-7025}/.omniopt_plot_scatter_generation_method.py +0 -0
- {omniopt2-7018 → omniopt2-7025}/.omniopt_plot_scatter_hex.py +0 -0
- {omniopt2-7018 → omniopt2-7025}/.omniopt_plot_time_and_exit_code.py +0 -0
- {omniopt2-7018 → omniopt2-7025}/.omniopt_plot_trial_index_result.py +0 -0
- {omniopt2-7018 → omniopt2-7025}/.omniopt_plot_worker.py +0 -0
- {omniopt2-7018 → omniopt2-7025}/.random_generator.py +0 -0
- {omniopt2-7018 → omniopt2-7025}/.shellscript_functions +0 -0
- {omniopt2-7018 → omniopt2-7025}/LICENSE +0 -0
- {omniopt2-7018 → omniopt2-7025}/MANIFEST.in +0 -0
- {omniopt2-7018 → omniopt2-7025}/README.md +0 -0
- {omniopt2-7018 → omniopt2-7025}/apt-dependencies.txt +0 -0
- {omniopt2-7018 → omniopt2-7025}/omniopt +0 -0
- {omniopt2-7018 → omniopt2-7025}/omniopt2.egg-info/SOURCES.txt +0 -0
- {omniopt2-7018 → omniopt2-7025}/omniopt2.egg-info/dependency_links.txt +0 -0
- {omniopt2-7018 → omniopt2-7025}/omniopt2.egg-info/requires.txt +0 -0
- {omniopt2-7018 → omniopt2-7025}/omniopt2.egg-info/top_level.txt +0 -0
- {omniopt2-7018 → omniopt2-7025}/omniopt_docker +0 -0
- {omniopt2-7018 → omniopt2-7025}/omniopt_evaluate +0 -0
- {omniopt2-7018 → omniopt2-7025}/omniopt_plot +0 -0
- {omniopt2-7018 → omniopt2-7025}/omniopt_share +0 -0
- {omniopt2-7018 → omniopt2-7025}/requirements.txt +0 -0
- {omniopt2-7018 → omniopt2-7025}/setup.cfg +0 -0
- {omniopt2-7018 → omniopt2-7025}/setup.py +0 -0
- {omniopt2-7018 → omniopt2-7025}/test_requirements.txt +0 -0
@@ -531,7 +531,6 @@ class ConfigLoader:
|
|
531
531
|
auto_exclude_defective_hosts: bool
|
532
532
|
debug: bool
|
533
533
|
num_restarts: int
|
534
|
-
batch_limit: int
|
535
534
|
raw_samples: int
|
536
535
|
show_generate_time_table: bool
|
537
536
|
max_attempts_for_generation: int
|
@@ -662,7 +661,6 @@ class ConfigLoader:
|
|
662
661
|
speed.add_argument('--raw_samples', help='raw_samples option for optimizer_options', type=int, default=1024)
|
663
662
|
speed.add_argument('--no_transform_inputs', help='Disable input transformations', action='store_true', default=False)
|
664
663
|
speed.add_argument('--no_normalize_y', help='Disable target normalization', action='store_true', default=False)
|
665
|
-
speed.add_argument('--batch_limit', help='batch_limit option for optimizer_options (limits number of parallel candidates per restart)', type=int, default=32)
|
666
664
|
|
667
665
|
slurm.add_argument('--num_parallel_jobs', help='Number of parallel SLURM jobs (default: 20)', type=int, default=20)
|
668
666
|
slurm.add_argument('--worker_timeout', help='Timeout for SLURM jobs (i.e. for each single point to be optimized)', type=int, default=30)
|
@@ -2956,11 +2954,13 @@ def find_file_paths(_text: str) -> List[str]:
|
|
2956
2954
|
@beartype
|
2957
2955
|
def check_file_info(file_path: str) -> str:
|
2958
2956
|
if not os.path.exists(file_path):
|
2959
|
-
|
2957
|
+
if not args.tests:
|
2958
|
+
print(f"check_file_info: The file {file_path} does not exist.")
|
2960
2959
|
return ""
|
2961
2960
|
|
2962
2961
|
if not os.access(file_path, os.R_OK):
|
2963
|
-
|
2962
|
+
if not args.tests:
|
2963
|
+
print(f"check_file_info: The file {file_path} is not readable.")
|
2964
2964
|
return ""
|
2965
2965
|
|
2966
2966
|
file_stat = os.stat(file_path)
|
@@ -4063,7 +4063,8 @@ def plot_sixel_imgs() -> None:
|
|
4063
4063
|
def get_crf() -> str:
|
4064
4064
|
crf = get_current_run_folder()
|
4065
4065
|
if crf in ["", None]:
|
4066
|
-
|
4066
|
+
if not args.tests:
|
4067
|
+
console.print("[red]Could not find current run folder[/]")
|
4067
4068
|
return ""
|
4068
4069
|
return crf
|
4069
4070
|
|
@@ -5660,7 +5661,6 @@ def insert_jobs_from_csv(this_csv_file_path: str, experiment_parameters: Optiona
|
|
5660
5661
|
with console.status("[bold green]Loading existing jobs into ax_client...") as __status:
|
5661
5662
|
i = 0
|
5662
5663
|
for arm_params, result in zip(arm_params_list, results_list):
|
5663
|
-
|
5664
5664
|
__status.update(f"[bold green]Loading existing jobs from {this_csv_file_path} into ax_client")
|
5665
5665
|
arm_params = validate_and_convert_params(experiment_parameters, arm_params)
|
5666
5666
|
|
@@ -6948,9 +6948,6 @@ def get_model_gen_kwargs() -> dict:
|
|
6948
6948
|
"num_restarts": args.num_restarts,
|
6949
6949
|
"raw_samples": args.raw_samples,
|
6950
6950
|
# "sequential": False, # TODO, when https://github.com/facebook/Ax/issues/3819 is solved
|
6951
|
-
"options": {
|
6952
|
-
"batch_limit": args.batch_limit,
|
6953
|
-
},
|
6954
6951
|
},
|
6955
6952
|
},
|
6956
6953
|
"fallback_to_sample_polytope": True,
|
@@ -9247,7 +9244,7 @@ def main() -> None:
|
|
9247
9244
|
write_files_and_show_overviews()
|
9248
9245
|
|
9249
9246
|
for existing_run in args.load_data_from_existing_jobs:
|
9250
|
-
insert_jobs_from_csv(f"{existing_run}/results.csv", experiment_parameters)
|
9247
|
+
insert_jobs_from_csv(f"{existing_run}/results.csv".replace("//", "/"), experiment_parameters)
|
9251
9248
|
|
9252
9249
|
set_global_generation_strategy()
|
9253
9250
|
|
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
|
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
|