omniopt2 8731__tar.gz → 8748__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.

Potentially problematic release.


This version of omniopt2 might be problematic. Click here for more details.

Files changed (40) hide show
  1. {omniopt2-8731 → omniopt2-8748}/.omniopt.py +17 -25
  2. {omniopt2-8731 → omniopt2-8748}/.tests/pylint.rc +0 -4
  3. {omniopt2-8731 → omniopt2-8748}/PKG-INFO +1 -1
  4. {omniopt2-8731 → omniopt2-8748}/omniopt2.egg-info/PKG-INFO +1 -1
  5. {omniopt2-8731 → omniopt2-8748}/pyproject.toml +1 -1
  6. {omniopt2-8731 → omniopt2-8748}/.colorfunctions.sh +0 -0
  7. {omniopt2-8731 → omniopt2-8748}/.dockerignore +0 -0
  8. {omniopt2-8731 → omniopt2-8748}/.general.sh +0 -0
  9. {omniopt2-8731 → omniopt2-8748}/.gitignore +0 -0
  10. {omniopt2-8731 → omniopt2-8748}/.helpers.py +0 -0
  11. {omniopt2-8731 → omniopt2-8748}/.omniopt_plot_cpu_ram_usage.py +0 -0
  12. {omniopt2-8731 → omniopt2-8748}/.omniopt_plot_general.py +0 -0
  13. {omniopt2-8731 → omniopt2-8748}/.omniopt_plot_gpu_usage.py +0 -0
  14. {omniopt2-8731 → omniopt2-8748}/.omniopt_plot_kde.py +0 -0
  15. {omniopt2-8731 → omniopt2-8748}/.omniopt_plot_scatter.py +0 -0
  16. {omniopt2-8731 → omniopt2-8748}/.omniopt_plot_scatter_generation_method.py +0 -0
  17. {omniopt2-8731 → omniopt2-8748}/.omniopt_plot_scatter_hex.py +0 -0
  18. {omniopt2-8731 → omniopt2-8748}/.omniopt_plot_time_and_exit_code.py +0 -0
  19. {omniopt2-8731 → omniopt2-8748}/.omniopt_plot_trial_index_result.py +0 -0
  20. {omniopt2-8731 → omniopt2-8748}/.omniopt_plot_worker.py +0 -0
  21. {omniopt2-8731 → omniopt2-8748}/.random_generator.py +0 -0
  22. {omniopt2-8731 → omniopt2-8748}/.shellscript_functions +0 -0
  23. {omniopt2-8731 → omniopt2-8748}/.tpe.py +0 -0
  24. {omniopt2-8731 → omniopt2-8748}/LICENSE +0 -0
  25. {omniopt2-8731 → omniopt2-8748}/MANIFEST.in +0 -0
  26. {omniopt2-8731 → omniopt2-8748}/README.md +0 -0
  27. {omniopt2-8731 → omniopt2-8748}/apt-dependencies.txt +0 -0
  28. {omniopt2-8731 → omniopt2-8748}/omniopt +0 -0
  29. {omniopt2-8731 → omniopt2-8748}/omniopt2.egg-info/SOURCES.txt +0 -0
  30. {omniopt2-8731 → omniopt2-8748}/omniopt2.egg-info/dependency_links.txt +0 -0
  31. {omniopt2-8731 → omniopt2-8748}/omniopt2.egg-info/requires.txt +0 -0
  32. {omniopt2-8731 → omniopt2-8748}/omniopt2.egg-info/top_level.txt +0 -0
  33. {omniopt2-8731 → omniopt2-8748}/omniopt_docker +0 -0
  34. {omniopt2-8731 → omniopt2-8748}/omniopt_evaluate +0 -0
  35. {omniopt2-8731 → omniopt2-8748}/omniopt_plot +0 -0
  36. {omniopt2-8731 → omniopt2-8748}/omniopt_share +0 -0
  37. {omniopt2-8731 → omniopt2-8748}/requirements.txt +0 -0
  38. {omniopt2-8731 → omniopt2-8748}/setup.cfg +0 -0
  39. {omniopt2-8731 → omniopt2-8748}/setup.py +0 -0
  40. {omniopt2-8731 → omniopt2-8748}/test_requirements.txt +0 -0
@@ -4999,7 +4999,7 @@ def abandon_job(job: Job, trial_index: int, reason: str) -> bool:
4999
4999
  if _trial is None:
5000
5000
  return False
5001
5001
 
5002
- mark_abandoned(_trial, reason)
5002
+ mark_abandoned(_trial, reason, trial_index)
5003
5003
  print_debug(f"abandon_job: removing job {job}, trial_index: {trial_index}")
5004
5004
  global_vars["jobs"].remove((job, trial_index))
5005
5005
  else:
@@ -5487,20 +5487,9 @@ def check_equation(variables: list, equation: str) -> Union[str, bool]:
5487
5487
  def set_objectives() -> dict:
5488
5488
  objectives = {}
5489
5489
 
5490
- for rn in arg_result_names:
5491
- key, value = "", ""
5492
-
5493
- if "=" in rn:
5494
- key, value = rn.split('=', 1)
5495
- else:
5496
- key = rn
5497
- value = ""
5498
-
5499
- if value not in ["min", "max"]:
5500
- if value:
5501
- print_yellow(f"Value '{value}' for --result_names {rn} is not a valid value. Must be min or max. Will be set to min.")
5502
-
5503
- value = "min"
5490
+ k = 0
5491
+ for key in arg_result_names:
5492
+ value = arg_result_min_or_max[k]
5504
5493
 
5505
5494
  _min = True
5506
5495
 
@@ -5508,6 +5497,7 @@ def set_objectives() -> dict:
5508
5497
  _min = False
5509
5498
 
5510
5499
  objectives[key] = ObjectiveProperties(minimize=_min)
5500
+ k = k + 1
5511
5501
 
5512
5502
  return objectives
5513
5503
 
@@ -8207,10 +8197,10 @@ def get_batched_arms(nr_of_jobs_to_get: int) -> list:
8207
8197
 
8208
8198
  #print_debug(f"get_batched_arms: Attempt {attempts + 1}: requesting 1 more arm")
8209
8199
 
8210
- #t0 = time.time()
8211
- pending_observations = get_pending_observation_features(experiment=ax_client.experiment)
8212
- #dt = time.time() - t0
8213
- #print_debug(f"got pending observations: {pending_observations} (took {dt:.2f} seconds)")
8200
+ pending_observations = get_pending_observation_features(
8201
+ experiment=ax_client.experiment,
8202
+ include_out_of_design_points=True
8203
+ )
8214
8204
 
8215
8205
  try:
8216
8206
  #print_debug("getting global_gs.gen() with n=1")
@@ -8307,10 +8297,12 @@ def generate_trials(n: int, recursion: bool) -> Tuple[Dict[int, Any], bool]:
8307
8297
  class TrialRejected(Exception):
8308
8298
  pass
8309
8299
 
8310
- def mark_abandoned(trial: Any, reason: str) -> None:
8311
- print_debug(f"Marking trial {trial} as abandoned. Reason: {reason}")
8312
-
8313
- trial.mark_abandoned(reason=reason)
8300
+ def mark_abandoned(trial: Any, reason: str, trial_index: int) -> None:
8301
+ try:
8302
+ print_debug(f"[INFO] Marking trial {trial.index} ({trial.arm.name}) as abandoned, trial-index: {trial_index}. Reason: {reason}")
8303
+ trial.mark_abandoned(reason)
8304
+ except Exception as e:
8305
+ print(f"[ERROR] Could not mark trial as abandoned: {e}")
8314
8306
 
8315
8307
  def create_and_handle_trial(arm: Any) -> Optional[Tuple[int, float, bool]]:
8316
8308
  if ax_client is None:
@@ -8337,7 +8329,7 @@ def create_and_handle_trial(arm: Any) -> Optional[Tuple[int, float, bool]]:
8337
8329
  arm = trial.arms[0]
8338
8330
  if deduplicated_arm(arm):
8339
8331
  print_debug(f"Duplicated arm: {arm}")
8340
- mark_abandoned(trial, "Duplication detected")
8332
+ mark_abandoned(trial, "Duplication detected", trial_index)
8341
8333
  raise TrialRejected("Duplicate arm.")
8342
8334
 
8343
8335
  arms_by_name_for_deduplication[arm.name] = arm
@@ -8346,7 +8338,7 @@ def create_and_handle_trial(arm: Any) -> Optional[Tuple[int, float, bool]]:
8346
8338
 
8347
8339
  if not has_no_post_generation_constraints_or_matches_constraints(post_generation_constraints, params):
8348
8340
  print_debug(f"Trial {trial_index} does not meet post-generation constraints. Marking abandoned. Params: {params}, constraints: {post_generation_constraints}")
8349
- mark_abandoned(trial, "Post-Generation-Constraint failed")
8341
+ mark_abandoned(trial, "Post-Generation-Constraint failed", trial_index)
8350
8342
  abandoned_trial_indices.append(trial_index)
8351
8343
  raise TrialRejected("Post-generation constraints not met.")
8352
8344
 
@@ -103,10 +103,6 @@ recursive=no
103
103
  # source root.
104
104
  source-roots=
105
105
 
106
- # When enabled, pylint would attempt to guess common misconfiguration and emit
107
- # user-friendly hints instead of false-positive error messages.
108
- suggestion-mode=yes
109
-
110
106
  # Allow loading of arbitrary C extensions. Extensions are imported into the
111
107
  # active Python interpreter and may run arbitrary code.
112
108
  unsafe-load-any-extension=no
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 8731
3
+ Version: 8748
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: 8731
3
+ Version: 8748
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 = "8731"
8
+ version = "8748"
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