omniopt2 7017__tar.gz → 7024__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.
Files changed (38) hide show
  1. {omniopt2-7017 → omniopt2-7024}/.omniopt.py +22 -28
  2. {omniopt2-7017 → omniopt2-7024}/PKG-INFO +1 -1
  3. {omniopt2-7017 → omniopt2-7024}/omniopt2.egg-info/PKG-INFO +1 -1
  4. {omniopt2-7017 → omniopt2-7024}/pyproject.toml +1 -1
  5. {omniopt2-7017 → omniopt2-7024}/.colorfunctions.sh +0 -0
  6. {omniopt2-7017 → omniopt2-7024}/.dockerignore +0 -0
  7. {omniopt2-7017 → omniopt2-7024}/.general.sh +0 -0
  8. {omniopt2-7017 → omniopt2-7024}/.gitignore +0 -0
  9. {omniopt2-7017 → omniopt2-7024}/.helpers.py +0 -0
  10. {omniopt2-7017 → omniopt2-7024}/.omniopt_plot_cpu_ram_usage.py +0 -0
  11. {omniopt2-7017 → omniopt2-7024}/.omniopt_plot_general.py +0 -0
  12. {omniopt2-7017 → omniopt2-7024}/.omniopt_plot_gpu_usage.py +0 -0
  13. {omniopt2-7017 → omniopt2-7024}/.omniopt_plot_kde.py +0 -0
  14. {omniopt2-7017 → omniopt2-7024}/.omniopt_plot_scatter.py +0 -0
  15. {omniopt2-7017 → omniopt2-7024}/.omniopt_plot_scatter_generation_method.py +0 -0
  16. {omniopt2-7017 → omniopt2-7024}/.omniopt_plot_scatter_hex.py +0 -0
  17. {omniopt2-7017 → omniopt2-7024}/.omniopt_plot_time_and_exit_code.py +0 -0
  18. {omniopt2-7017 → omniopt2-7024}/.omniopt_plot_trial_index_result.py +0 -0
  19. {omniopt2-7017 → omniopt2-7024}/.omniopt_plot_worker.py +0 -0
  20. {omniopt2-7017 → omniopt2-7024}/.random_generator.py +0 -0
  21. {omniopt2-7017 → omniopt2-7024}/.shellscript_functions +0 -0
  22. {omniopt2-7017 → omniopt2-7024}/LICENSE +0 -0
  23. {omniopt2-7017 → omniopt2-7024}/MANIFEST.in +0 -0
  24. {omniopt2-7017 → omniopt2-7024}/README.md +0 -0
  25. {omniopt2-7017 → omniopt2-7024}/apt-dependencies.txt +0 -0
  26. {omniopt2-7017 → omniopt2-7024}/omniopt +0 -0
  27. {omniopt2-7017 → omniopt2-7024}/omniopt2.egg-info/SOURCES.txt +0 -0
  28. {omniopt2-7017 → omniopt2-7024}/omniopt2.egg-info/dependency_links.txt +0 -0
  29. {omniopt2-7017 → omniopt2-7024}/omniopt2.egg-info/requires.txt +0 -0
  30. {omniopt2-7017 → omniopt2-7024}/omniopt2.egg-info/top_level.txt +0 -0
  31. {omniopt2-7017 → omniopt2-7024}/omniopt_docker +0 -0
  32. {omniopt2-7017 → omniopt2-7024}/omniopt_evaluate +0 -0
  33. {omniopt2-7017 → omniopt2-7024}/omniopt_plot +0 -0
  34. {omniopt2-7017 → omniopt2-7024}/omniopt_share +0 -0
  35. {omniopt2-7017 → omniopt2-7024}/requirements.txt +0 -0
  36. {omniopt2-7017 → omniopt2-7024}/setup.cfg +0 -0
  37. {omniopt2-7017 → omniopt2-7024}/setup.py +0 -0
  38. {omniopt2-7017 → omniopt2-7024}/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
- print(f"check_file_info: The file {file_path} does not exist.")
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
- print(f"check_file_info: The file {file_path} is not readable.")
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
- console.print("[red]Could not find current run folder[/]")
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
 
@@ -6439,23 +6439,20 @@ def handle_restart(stdout_path: str, trial_index: int) -> None:
6439
6439
  else:
6440
6440
  print(f"Could not determine parameters from outfile {stdout_path} for restarting job")
6441
6441
 
6442
- @beartype
6443
- def check_alternate_path(path: str) -> str:
6444
- if os.path.exists(path):
6445
- return path
6446
-
6447
- if path.endswith('.out'):
6448
- alt_path = path[:-4] + '.err'
6449
- elif path.endswith('.err'):
6450
- alt_path = path[:-4] + '.out'
6451
- else:
6452
- alt_path = None
6453
-
6454
- if alt_path and os.path.exists(alt_path):
6455
- return alt_path
6456
-
6457
- # Wenn auch der alternative Pfad nicht existiert, gib den Originalpfad zurück
6458
- return path
6442
+ #@beartype
6443
+ #def check_alternate_path(path: str) -> str:
6444
+ # if os.path.exists(path):
6445
+ # return path
6446
+ # if path.endswith('.out'):
6447
+ # alt_path = path[:-4] + '.err'
6448
+ # elif path.endswith('.err'):
6449
+ # alt_path = path[:-4] + '.out'
6450
+ # else:
6451
+ # alt_path = None
6452
+ # if alt_path and os.path.exists(alt_path):
6453
+ # return alt_path
6454
+ # # Wenn auch der alternative Pfad nicht existiert, gib den Originalpfad zurück
6455
+ # return path
6459
6456
 
6460
6457
  @beartype
6461
6458
  def handle_restart_on_different_node(stdout_path: str, hostname_from_out_file: Union[None, str], trial_index: int) -> None:
@@ -6471,7 +6468,7 @@ def handle_restart_on_different_node(stdout_path: str, hostname_from_out_file: U
6471
6468
 
6472
6469
  @beartype
6473
6470
  def _orchestrate(stdout_path: str, trial_index: int) -> None:
6474
- stdout_path = check_alternate_path(stdout_path)
6471
+ #stdout_path = check_alternate_path(stdout_path)
6475
6472
 
6476
6473
  behavs = check_orchestrator(stdout_path, trial_index)
6477
6474
 
@@ -6951,9 +6948,6 @@ def get_model_gen_kwargs() -> dict:
6951
6948
  "num_restarts": args.num_restarts,
6952
6949
  "raw_samples": args.raw_samples,
6953
6950
  # "sequential": False, # TODO, when https://github.com/facebook/Ax/issues/3819 is solved
6954
- "options": {
6955
- "batch_limit": args.batch_limit,
6956
- },
6957
6951
  },
6958
6952
  },
6959
6953
  "fallback_to_sample_polytope": True,
@@ -9250,7 +9244,7 @@ def main() -> None:
9250
9244
  write_files_and_show_overviews()
9251
9245
 
9252
9246
  for existing_run in args.load_data_from_existing_jobs:
9253
- insert_jobs_from_csv(f"{existing_run}/results.csv", experiment_parameters)
9247
+ insert_jobs_from_csv(f"{existing_run}/results.csv".replace("//", "/"), experiment_parameters)
9254
9248
 
9255
9249
  set_global_generation_strategy()
9256
9250
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 7017
3
+ Version: 7024
4
4
  Summary: Automatic highly parallelized hyperparameter optimizer based on Ax/Botorch
5
5
  Home-page: https://scads.ai/transfer-2/verfuegbare-software-dienste-en/omniopt/
6
6
  Author: Norman Koch
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 7017
3
+ Version: 7024
4
4
  Summary: Automatic highly parallelized hyperparameter optimizer based on Ax/Botorch
5
5
  Home-page: https://scads.ai/transfer-2/verfuegbare-software-dienste-en/omniopt/
6
6
  Author: Norman Koch
@@ -5,7 +5,7 @@ authors = [
5
5
  {email = "norman.koch@tu-dresden.de"},
6
6
  {name = "Norman Koch"}
7
7
  ]
8
- version = "7017"
8
+ version = "7024"
9
9
 
10
10
  readme = "README.md"
11
11
  dynamic = ["dependencies"]
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