omniopt2 8724__tar.gz → 8729__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-8724 → omniopt2-8729}/.omniopt.py +17 -10
  2. {omniopt2-8724 → omniopt2-8729}/PKG-INFO +1 -1
  3. {omniopt2-8724 → omniopt2-8729}/omniopt2.egg-info/PKG-INFO +1 -1
  4. {omniopt2-8724 → omniopt2-8729}/pyproject.toml +1 -1
  5. {omniopt2-8724 → omniopt2-8729}/.colorfunctions.sh +0 -0
  6. {omniopt2-8724 → omniopt2-8729}/.dockerignore +0 -0
  7. {omniopt2-8724 → omniopt2-8729}/.general.sh +0 -0
  8. {omniopt2-8724 → omniopt2-8729}/.gitignore +0 -0
  9. {omniopt2-8724 → omniopt2-8729}/.helpers.py +0 -0
  10. {omniopt2-8724 → omniopt2-8729}/.omniopt_plot_cpu_ram_usage.py +0 -0
  11. {omniopt2-8724 → omniopt2-8729}/.omniopt_plot_general.py +0 -0
  12. {omniopt2-8724 → omniopt2-8729}/.omniopt_plot_gpu_usage.py +0 -0
  13. {omniopt2-8724 → omniopt2-8729}/.omniopt_plot_kde.py +0 -0
  14. {omniopt2-8724 → omniopt2-8729}/.omniopt_plot_scatter.py +0 -0
  15. {omniopt2-8724 → omniopt2-8729}/.omniopt_plot_scatter_generation_method.py +0 -0
  16. {omniopt2-8724 → omniopt2-8729}/.omniopt_plot_scatter_hex.py +0 -0
  17. {omniopt2-8724 → omniopt2-8729}/.omniopt_plot_time_and_exit_code.py +0 -0
  18. {omniopt2-8724 → omniopt2-8729}/.omniopt_plot_trial_index_result.py +0 -0
  19. {omniopt2-8724 → omniopt2-8729}/.omniopt_plot_worker.py +0 -0
  20. {omniopt2-8724 → omniopt2-8729}/.random_generator.py +0 -0
  21. {omniopt2-8724 → omniopt2-8729}/.shellscript_functions +0 -0
  22. {omniopt2-8724 → omniopt2-8729}/.tests/pylint.rc +0 -0
  23. {omniopt2-8724 → omniopt2-8729}/.tpe.py +0 -0
  24. {omniopt2-8724 → omniopt2-8729}/LICENSE +0 -0
  25. {omniopt2-8724 → omniopt2-8729}/MANIFEST.in +0 -0
  26. {omniopt2-8724 → omniopt2-8729}/README.md +0 -0
  27. {omniopt2-8724 → omniopt2-8729}/apt-dependencies.txt +0 -0
  28. {omniopt2-8724 → omniopt2-8729}/omniopt +0 -0
  29. {omniopt2-8724 → omniopt2-8729}/omniopt2.egg-info/SOURCES.txt +0 -0
  30. {omniopt2-8724 → omniopt2-8729}/omniopt2.egg-info/dependency_links.txt +0 -0
  31. {omniopt2-8724 → omniopt2-8729}/omniopt2.egg-info/requires.txt +0 -0
  32. {omniopt2-8724 → omniopt2-8729}/omniopt2.egg-info/top_level.txt +0 -0
  33. {omniopt2-8724 → omniopt2-8729}/omniopt_docker +0 -0
  34. {omniopt2-8724 → omniopt2-8729}/omniopt_evaluate +0 -0
  35. {omniopt2-8724 → omniopt2-8729}/omniopt_plot +0 -0
  36. {omniopt2-8724 → omniopt2-8729}/omniopt_share +0 -0
  37. {omniopt2-8724 → omniopt2-8729}/requirements.txt +0 -0
  38. {omniopt2-8724 → omniopt2-8729}/setup.cfg +0 -0
  39. {omniopt2-8724 → omniopt2-8729}/setup.py +0 -0
  40. {omniopt2-8724 → omniopt2-8729}/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
- _trial.mark_abandoned(reason=reason)
5002
+ mark_abandoned(_trial, reason)
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:
@@ -7513,7 +7513,7 @@ def _finish_previous_jobs_helper_handle_failed_job(job: Any, trial_index: int) -
7513
7513
  log_ax_client_trial_failure(trial_index)
7514
7514
  mark_trial_as_failed(trial_index, _trial)
7515
7515
  except Exception as e:
7516
- print(f"ERROR in line {get_line_info()}: {e}")
7516
+ print_debug(f"ERROR in line {get_line_info()}: {e}")
7517
7517
  job.cancel()
7518
7518
  orchestrate_job(job, trial_index)
7519
7519
 
@@ -7528,10 +7528,12 @@ def _finish_previous_jobs_helper_handle_failed_job(job: Any, trial_index: int) -
7528
7528
 
7529
7529
  def _finish_previous_jobs_helper_handle_exception(job: Any, trial_index: int, error: Exception) -> int:
7530
7530
  if "None for metric" in str(error):
7531
- print_red(
7532
- f"\n⚠ It seems like the program that was about to be run didn't have 'RESULT: <FLOAT>' in it's output string."
7533
- f"\nError: {error}\nJob-result: {job.result()}"
7534
- )
7531
+ err_msg = f"\n⚠ It seems like the program that was about to be run didn't have 'RESULT: <FLOAT>' in it's output string.\nError: {error}\nJob-result: {job.result()}"
7532
+
7533
+ if count_done_jobs() == 0:
7534
+ print_red(err_msg)
7535
+ else:
7536
+ print_debug(err_msg)
7535
7537
  else:
7536
7538
  print_red(f"\n⚠ {error}")
7537
7539
 
@@ -7769,8 +7771,8 @@ def get_ax_client_trial(trial_index: int) -> Optional[ax.core.trial.Trial]:
7769
7771
 
7770
7772
  try:
7771
7773
  return ax_client.get_trial(trial_index)
7772
- except KeyError as e:
7773
- error_without_print(f"get_ax_client_trial: trial_index {trial_index} failed, error: {e}")
7774
+ except KeyError:
7775
+ error_without_print(f"get_ax_client_trial: trial_index {trial_index} failed")
7774
7776
  return None
7775
7777
 
7776
7778
  def orchestrator_start_trial(parameters: Union[dict, str], trial_index: int) -> None:
@@ -8305,6 +8307,11 @@ def generate_trials(n: int, recursion: bool) -> Tuple[Dict[int, Any], bool]:
8305
8307
  class TrialRejected(Exception):
8306
8308
  pass
8307
8309
 
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)
8314
+
8308
8315
  def create_and_handle_trial(arm: Any) -> Optional[Tuple[int, float, bool]]:
8309
8316
  if ax_client is None:
8310
8317
  print_red("ax_client is None in create_and_handle_trial")
@@ -8330,7 +8337,7 @@ def create_and_handle_trial(arm: Any) -> Optional[Tuple[int, float, bool]]:
8330
8337
  arm = trial.arms[0]
8331
8338
  if deduplicated_arm(arm):
8332
8339
  print_debug(f"Duplicated arm: {arm}")
8333
- trial.mark_abandoned(reason="Duplication detected")
8340
+ mark_abandoned(trial, "Duplication detected")
8334
8341
  raise TrialRejected("Duplicate arm.")
8335
8342
 
8336
8343
  arms_by_name_for_deduplication[arm.name] = arm
@@ -8339,7 +8346,7 @@ def create_and_handle_trial(arm: Any) -> Optional[Tuple[int, float, bool]]:
8339
8346
 
8340
8347
  if not has_no_post_generation_constraints_or_matches_constraints(post_generation_constraints, params):
8341
8348
  print_debug(f"Trial {trial_index} does not meet post-generation constraints. Marking abandoned. Params: {params}, constraints: {post_generation_constraints}")
8342
- trial.mark_abandoned(reason="Post-Generation-Constraint failed")
8349
+ mark_abandoned(trial, "Post-Generation-Constraint failed")
8343
8350
  abandoned_trial_indices.append(trial_index)
8344
8351
  raise TrialRejected("Post-generation constraints not met.")
8345
8352
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 8724
3
+ Version: 8729
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: 8724
3
+ Version: 8729
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 = "8724"
8
+ version = "8729"
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
File without changes