omniopt2 7081__tar.gz → 7083__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 (39) hide show
  1. {omniopt2-7081 → omniopt2-7083}/.omniopt.py +26 -0
  2. {omniopt2-7081 → omniopt2-7083}/PKG-INFO +1 -1
  3. {omniopt2-7081 → omniopt2-7083}/omniopt2.egg-info/PKG-INFO +1 -1
  4. {omniopt2-7081 → omniopt2-7083}/pyproject.toml +1 -1
  5. {omniopt2-7081 → omniopt2-7083}/.colorfunctions.sh +0 -0
  6. {omniopt2-7081 → omniopt2-7083}/.dockerignore +0 -0
  7. {omniopt2-7081 → omniopt2-7083}/.general.sh +0 -0
  8. {omniopt2-7081 → omniopt2-7083}/.gitignore +0 -0
  9. {omniopt2-7081 → omniopt2-7083}/.helpers.py +0 -0
  10. {omniopt2-7081 → omniopt2-7083}/.omniopt_plot_cpu_ram_usage.py +0 -0
  11. {omniopt2-7081 → omniopt2-7083}/.omniopt_plot_general.py +0 -0
  12. {omniopt2-7081 → omniopt2-7083}/.omniopt_plot_gpu_usage.py +0 -0
  13. {omniopt2-7081 → omniopt2-7083}/.omniopt_plot_kde.py +0 -0
  14. {omniopt2-7081 → omniopt2-7083}/.omniopt_plot_scatter.py +0 -0
  15. {omniopt2-7081 → omniopt2-7083}/.omniopt_plot_scatter_generation_method.py +0 -0
  16. {omniopt2-7081 → omniopt2-7083}/.omniopt_plot_scatter_hex.py +0 -0
  17. {omniopt2-7081 → omniopt2-7083}/.omniopt_plot_time_and_exit_code.py +0 -0
  18. {omniopt2-7081 → omniopt2-7083}/.omniopt_plot_trial_index_result.py +0 -0
  19. {omniopt2-7081 → omniopt2-7083}/.omniopt_plot_worker.py +0 -0
  20. {omniopt2-7081 → omniopt2-7083}/.random_generator.py +0 -0
  21. {omniopt2-7081 → omniopt2-7083}/.shellscript_functions +0 -0
  22. {omniopt2-7081 → omniopt2-7083}/.tpe.py +0 -0
  23. {omniopt2-7081 → omniopt2-7083}/LICENSE +0 -0
  24. {omniopt2-7081 → omniopt2-7083}/MANIFEST.in +0 -0
  25. {omniopt2-7081 → omniopt2-7083}/README.md +0 -0
  26. {omniopt2-7081 → omniopt2-7083}/apt-dependencies.txt +0 -0
  27. {omniopt2-7081 → omniopt2-7083}/omniopt +0 -0
  28. {omniopt2-7081 → omniopt2-7083}/omniopt2.egg-info/SOURCES.txt +0 -0
  29. {omniopt2-7081 → omniopt2-7083}/omniopt2.egg-info/dependency_links.txt +0 -0
  30. {omniopt2-7081 → omniopt2-7083}/omniopt2.egg-info/requires.txt +0 -0
  31. {omniopt2-7081 → omniopt2-7083}/omniopt2.egg-info/top_level.txt +0 -0
  32. {omniopt2-7081 → omniopt2-7083}/omniopt_docker +0 -0
  33. {omniopt2-7081 → omniopt2-7083}/omniopt_evaluate +0 -0
  34. {omniopt2-7081 → omniopt2-7083}/omniopt_plot +0 -0
  35. {omniopt2-7081 → omniopt2-7083}/omniopt_share +0 -0
  36. {omniopt2-7081 → omniopt2-7083}/requirements.txt +0 -0
  37. {omniopt2-7081 → omniopt2-7083}/setup.cfg +0 -0
  38. {omniopt2-7081 → omniopt2-7083}/setup.py +0 -0
  39. {omniopt2-7081 → omniopt2-7083}/test_requirements.txt +0 -0
@@ -572,6 +572,7 @@ class ConfigLoader:
572
572
  workdir: str
573
573
  dont_jit_compile: bool
574
574
  no_normalize_y: bool
575
+ transforms: List[str]
575
576
  no_transform_inputs: bool
576
577
  occ: bool
577
578
  force_choice_for_ranges: bool
@@ -663,6 +664,7 @@ class ConfigLoader:
663
664
  speed.add_argument('--max_num_of_parallel_sruns', help='Maximal number of parallel sruns', type=int, default=16)
664
665
  speed.add_argument('--no_transform_inputs', help='Disable input transformations', action='store_true', default=False)
665
666
  speed.add_argument('--no_normalize_y', help='Disable target normalization', action='store_true', default=False)
667
+ speed.add_argument('--transforms', nargs='*', choices=['Cont_X_Trans', 'Y_trans'], default=[], help='Enable input/target transformations (choose one or both: Cont_X_Trans, Y_trans, or leave the option)')
666
668
 
667
669
  slurm.add_argument('--num_parallel_jobs', help='Number of parallel SLURM jobs (default: 20)', type=int, default=20)
668
670
  slurm.add_argument('--worker_timeout', help='Timeout for SLURM jobs (i.e. for each single point to be optimized)', type=int, default=30)
@@ -889,6 +891,9 @@ try:
889
891
  with console.status("[bold green]Importing ax.core.generator_run..."):
890
892
  from ax.core.generator_run import GeneratorRun
891
893
 
894
+ with console.status("[bold green]Importing Cont_X_trans and Y_trans from ax.modelbridge.registry..."):
895
+ from ax.modelbridge.registry import Cont_X_trans, Y_trans
896
+
892
897
  with console.status("[bold green]Importing ax.core.arm..."):
893
898
  from ax.core.arm import Arm
894
899
 
@@ -6945,6 +6950,25 @@ def _fetch_next_trials(nr_of_jobs_to_get: int, recursion: bool = False) -> Optio
6945
6950
 
6946
6951
  return {}, True
6947
6952
 
6953
+ @beartype
6954
+ def get_model_kwargs() -> dict:
6955
+ if 'Cont_X_Trans' in args.transforms and 'Y_trans' in args.transforms:
6956
+ return {
6957
+ "transforms": Cont_X_trans + Y_trans
6958
+ }
6959
+
6960
+ if 'Y_trans' in args.transforms:
6961
+ return {
6962
+ "transforms": Y_trans
6963
+ }
6964
+
6965
+ if 'Cont_X_Trans' in args.transforms:
6966
+ return {
6967
+ "transforms": Cont_X_trans
6968
+ }
6969
+
6970
+ return {}
6971
+
6948
6972
  @beartype
6949
6973
  def get_model_gen_kwargs() -> dict:
6950
6974
  return {
@@ -7552,6 +7576,7 @@ def create_node(model_name: str, threshold: int, next_model_name: Optional[str])
7552
7576
  model_spec = [
7553
7577
  GeneratorSpec(
7554
7578
  selected_model,
7579
+ model_kwargs=get_model_kwargs(),
7555
7580
  model_gen_kwargs=get_model_gen_kwargs()
7556
7581
  )
7557
7582
  ]
@@ -7576,6 +7601,7 @@ def create_systematic_step(model: Any, _num_trials: int = -1, index: Optional[in
7576
7601
  model=model,
7577
7602
  num_trials=_num_trials,
7578
7603
  max_parallelism=(1000 * max_eval + 1000),
7604
+ model_kwargs=get_model_kwargs(),
7579
7605
  model_gen_kwargs=get_model_gen_kwargs(),
7580
7606
  should_deduplicate=True,
7581
7607
  index=index
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 7081
3
+ Version: 7083
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: 7081
3
+ Version: 7083
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 = "7081"
8
+ version = "7083"
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
File without changes