omniopt2 8725__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.
- {omniopt2-8725 → omniopt2-8729}/.omniopt.py +16 -9
- {omniopt2-8725 → omniopt2-8729}/PKG-INFO +1 -1
- {omniopt2-8725 → omniopt2-8729}/omniopt2.egg-info/PKG-INFO +1 -1
- {omniopt2-8725 → omniopt2-8729}/pyproject.toml +1 -1
- {omniopt2-8725 → omniopt2-8729}/.colorfunctions.sh +0 -0
- {omniopt2-8725 → omniopt2-8729}/.dockerignore +0 -0
- {omniopt2-8725 → omniopt2-8729}/.general.sh +0 -0
- {omniopt2-8725 → omniopt2-8729}/.gitignore +0 -0
- {omniopt2-8725 → omniopt2-8729}/.helpers.py +0 -0
- {omniopt2-8725 → omniopt2-8729}/.omniopt_plot_cpu_ram_usage.py +0 -0
- {omniopt2-8725 → omniopt2-8729}/.omniopt_plot_general.py +0 -0
- {omniopt2-8725 → omniopt2-8729}/.omniopt_plot_gpu_usage.py +0 -0
- {omniopt2-8725 → omniopt2-8729}/.omniopt_plot_kde.py +0 -0
- {omniopt2-8725 → omniopt2-8729}/.omniopt_plot_scatter.py +0 -0
- {omniopt2-8725 → omniopt2-8729}/.omniopt_plot_scatter_generation_method.py +0 -0
- {omniopt2-8725 → omniopt2-8729}/.omniopt_plot_scatter_hex.py +0 -0
- {omniopt2-8725 → omniopt2-8729}/.omniopt_plot_time_and_exit_code.py +0 -0
- {omniopt2-8725 → omniopt2-8729}/.omniopt_plot_trial_index_result.py +0 -0
- {omniopt2-8725 → omniopt2-8729}/.omniopt_plot_worker.py +0 -0
- {omniopt2-8725 → omniopt2-8729}/.random_generator.py +0 -0
- {omniopt2-8725 → omniopt2-8729}/.shellscript_functions +0 -0
- {omniopt2-8725 → omniopt2-8729}/.tests/pylint.rc +0 -0
- {omniopt2-8725 → omniopt2-8729}/.tpe.py +0 -0
- {omniopt2-8725 → omniopt2-8729}/LICENSE +0 -0
- {omniopt2-8725 → omniopt2-8729}/MANIFEST.in +0 -0
- {omniopt2-8725 → omniopt2-8729}/README.md +0 -0
- {omniopt2-8725 → omniopt2-8729}/apt-dependencies.txt +0 -0
- {omniopt2-8725 → omniopt2-8729}/omniopt +0 -0
- {omniopt2-8725 → omniopt2-8729}/omniopt2.egg-info/SOURCES.txt +0 -0
- {omniopt2-8725 → omniopt2-8729}/omniopt2.egg-info/dependency_links.txt +0 -0
- {omniopt2-8725 → omniopt2-8729}/omniopt2.egg-info/requires.txt +0 -0
- {omniopt2-8725 → omniopt2-8729}/omniopt2.egg-info/top_level.txt +0 -0
- {omniopt2-8725 → omniopt2-8729}/omniopt_docker +0 -0
- {omniopt2-8725 → omniopt2-8729}/omniopt_evaluate +0 -0
- {omniopt2-8725 → omniopt2-8729}/omniopt_plot +0 -0
- {omniopt2-8725 → omniopt2-8729}/omniopt_share +0 -0
- {omniopt2-8725 → omniopt2-8729}/requirements.txt +0 -0
- {omniopt2-8725 → omniopt2-8729}/setup.cfg +0 -0
- {omniopt2-8725 → omniopt2-8729}/setup.py +0 -0
- {omniopt2-8725 → 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
|
-
|
|
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:
|
|
@@ -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
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
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
|
|
7773
|
-
error_without_print(f"get_ax_client_trial: trial_index {trial_index} failed
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
|
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
|
|
File without changes
|
|
File without changes
|