omniopt2 8731__tar.gz → 8749__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-8731 → omniopt2-8749}/.omniopt.py +17 -25
- {omniopt2-8731 → omniopt2-8749}/.tests/pylint.rc +0 -4
- {omniopt2-8731 → omniopt2-8749}/PKG-INFO +1 -1
- {omniopt2-8731 → omniopt2-8749}/omniopt2.egg-info/PKG-INFO +1 -1
- {omniopt2-8731 → omniopt2-8749}/pyproject.toml +1 -1
- {omniopt2-8731 → omniopt2-8749}/.colorfunctions.sh +0 -0
- {omniopt2-8731 → omniopt2-8749}/.dockerignore +0 -0
- {omniopt2-8731 → omniopt2-8749}/.general.sh +0 -0
- {omniopt2-8731 → omniopt2-8749}/.gitignore +0 -0
- {omniopt2-8731 → omniopt2-8749}/.helpers.py +0 -0
- {omniopt2-8731 → omniopt2-8749}/.omniopt_plot_cpu_ram_usage.py +0 -0
- {omniopt2-8731 → omniopt2-8749}/.omniopt_plot_general.py +0 -0
- {omniopt2-8731 → omniopt2-8749}/.omniopt_plot_gpu_usage.py +0 -0
- {omniopt2-8731 → omniopt2-8749}/.omniopt_plot_kde.py +0 -0
- {omniopt2-8731 → omniopt2-8749}/.omniopt_plot_scatter.py +0 -0
- {omniopt2-8731 → omniopt2-8749}/.omniopt_plot_scatter_generation_method.py +0 -0
- {omniopt2-8731 → omniopt2-8749}/.omniopt_plot_scatter_hex.py +0 -0
- {omniopt2-8731 → omniopt2-8749}/.omniopt_plot_time_and_exit_code.py +0 -0
- {omniopt2-8731 → omniopt2-8749}/.omniopt_plot_trial_index_result.py +0 -0
- {omniopt2-8731 → omniopt2-8749}/.omniopt_plot_worker.py +0 -0
- {omniopt2-8731 → omniopt2-8749}/.random_generator.py +0 -0
- {omniopt2-8731 → omniopt2-8749}/.shellscript_functions +0 -0
- {omniopt2-8731 → omniopt2-8749}/.tpe.py +0 -0
- {omniopt2-8731 → omniopt2-8749}/LICENSE +0 -0
- {omniopt2-8731 → omniopt2-8749}/MANIFEST.in +0 -0
- {omniopt2-8731 → omniopt2-8749}/README.md +0 -0
- {omniopt2-8731 → omniopt2-8749}/apt-dependencies.txt +0 -0
- {omniopt2-8731 → omniopt2-8749}/omniopt +0 -0
- {omniopt2-8731 → omniopt2-8749}/omniopt2.egg-info/SOURCES.txt +0 -0
- {omniopt2-8731 → omniopt2-8749}/omniopt2.egg-info/dependency_links.txt +0 -0
- {omniopt2-8731 → omniopt2-8749}/omniopt2.egg-info/requires.txt +0 -0
- {omniopt2-8731 → omniopt2-8749}/omniopt2.egg-info/top_level.txt +0 -0
- {omniopt2-8731 → omniopt2-8749}/omniopt_docker +0 -0
- {omniopt2-8731 → omniopt2-8749}/omniopt_evaluate +0 -0
- {omniopt2-8731 → omniopt2-8749}/omniopt_plot +0 -0
- {omniopt2-8731 → omniopt2-8749}/omniopt_share +0 -0
- {omniopt2-8731 → omniopt2-8749}/requirements.txt +0 -0
- {omniopt2-8731 → omniopt2-8749}/setup.cfg +0 -0
- {omniopt2-8731 → omniopt2-8749}/setup.py +0 -0
- {omniopt2-8731 → omniopt2-8749}/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
|
-
|
|
5491
|
-
|
|
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
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
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
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
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
|
|
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
|