omniopt2 7669__tar.gz → 7671__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-7669 → omniopt2-7671}/.omniopt.py +17 -0
- {omniopt2-7669 → omniopt2-7671}/PKG-INFO +1 -1
- {omniopt2-7669 → omniopt2-7671}/omniopt2.egg-info/PKG-INFO +1 -1
- {omniopt2-7669 → omniopt2-7671}/pyproject.toml +1 -1
- {omniopt2-7669 → omniopt2-7671}/.colorfunctions.sh +0 -0
- {omniopt2-7669 → omniopt2-7671}/.dockerignore +0 -0
- {omniopt2-7669 → omniopt2-7671}/.general.sh +0 -0
- {omniopt2-7669 → omniopt2-7671}/.gitignore +0 -0
- {omniopt2-7669 → omniopt2-7671}/.helpers.py +0 -0
- {omniopt2-7669 → omniopt2-7671}/.omniopt_plot_cpu_ram_usage.py +0 -0
- {omniopt2-7669 → omniopt2-7671}/.omniopt_plot_general.py +0 -0
- {omniopt2-7669 → omniopt2-7671}/.omniopt_plot_gpu_usage.py +0 -0
- {omniopt2-7669 → omniopt2-7671}/.omniopt_plot_kde.py +0 -0
- {omniopt2-7669 → omniopt2-7671}/.omniopt_plot_scatter.py +0 -0
- {omniopt2-7669 → omniopt2-7671}/.omniopt_plot_scatter_generation_method.py +0 -0
- {omniopt2-7669 → omniopt2-7671}/.omniopt_plot_scatter_hex.py +0 -0
- {omniopt2-7669 → omniopt2-7671}/.omniopt_plot_time_and_exit_code.py +0 -0
- {omniopt2-7669 → omniopt2-7671}/.omniopt_plot_trial_index_result.py +0 -0
- {omniopt2-7669 → omniopt2-7671}/.omniopt_plot_worker.py +0 -0
- {omniopt2-7669 → omniopt2-7671}/.random_generator.py +0 -0
- {omniopt2-7669 → omniopt2-7671}/.shellscript_functions +0 -0
- {omniopt2-7669 → omniopt2-7671}/.tpe.py +0 -0
- {omniopt2-7669 → omniopt2-7671}/LICENSE +0 -0
- {omniopt2-7669 → omniopt2-7671}/MANIFEST.in +0 -0
- {omniopt2-7669 → omniopt2-7671}/README.md +0 -0
- {omniopt2-7669 → omniopt2-7671}/apt-dependencies.txt +0 -0
- {omniopt2-7669 → omniopt2-7671}/omniopt +0 -0
- {omniopt2-7669 → omniopt2-7671}/omniopt2.egg-info/SOURCES.txt +0 -0
- {omniopt2-7669 → omniopt2-7671}/omniopt2.egg-info/dependency_links.txt +0 -0
- {omniopt2-7669 → omniopt2-7671}/omniopt2.egg-info/requires.txt +0 -0
- {omniopt2-7669 → omniopt2-7671}/omniopt2.egg-info/top_level.txt +0 -0
- {omniopt2-7669 → omniopt2-7671}/omniopt_docker +0 -0
- {omniopt2-7669 → omniopt2-7671}/omniopt_evaluate +0 -0
- {omniopt2-7669 → omniopt2-7671}/omniopt_plot +0 -0
- {omniopt2-7669 → omniopt2-7671}/omniopt_share +0 -0
- {omniopt2-7669 → omniopt2-7671}/requirements.txt +0 -0
- {omniopt2-7669 → omniopt2-7671}/setup.cfg +0 -0
- {omniopt2-7669 → omniopt2-7671}/setup.py +0 -0
- {omniopt2-7669 → omniopt2-7671}/test_requirements.txt +0 -0
|
@@ -17,6 +17,7 @@ import random
|
|
|
17
17
|
import tempfile
|
|
18
18
|
import threading
|
|
19
19
|
|
|
20
|
+
arms_by_signature_for_deduplication: dict = {}
|
|
20
21
|
initialized_storage: bool = False
|
|
21
22
|
prepared_setting_to_custom: bool = False
|
|
22
23
|
whole_start_time: float = time.time()
|
|
@@ -7573,6 +7574,13 @@ def die_101_if_no_ax_client_or_experiment_or_gs() -> None:
|
|
|
7573
7574
|
elif global_gs is None:
|
|
7574
7575
|
_fatal_error("Error: global_gs is not defined", 101)
|
|
7575
7576
|
|
|
7577
|
+
@beartype
|
|
7578
|
+
def deduplicated_arm(arm: Any) -> bool:
|
|
7579
|
+
if arm.signature in arms_by_signature_for_deduplication:
|
|
7580
|
+
return True
|
|
7581
|
+
|
|
7582
|
+
return False
|
|
7583
|
+
|
|
7576
7584
|
@beartype
|
|
7577
7585
|
def get_batched_arms(nr_of_jobs_to_get: int) -> list:
|
|
7578
7586
|
batched_arms: list = []
|
|
@@ -7697,6 +7705,15 @@ def _create_and_handle_trial(arm: Any) -> Optional[Tuple[int, float, bool]]:
|
|
|
7697
7705
|
)
|
|
7698
7706
|
|
|
7699
7707
|
trial = ax_client.experiment.new_trial(generator_run)
|
|
7708
|
+
|
|
7709
|
+
arm = trial.arms[0]
|
|
7710
|
+
if deduplicated_arm(arm):
|
|
7711
|
+
print_debug(f"Duplicated arm: {arm}")
|
|
7712
|
+
trial.mark_abandoned(reason="Duplication detected")
|
|
7713
|
+
return None
|
|
7714
|
+
|
|
7715
|
+
arms_by_signature_for_deduplication[arm.signature] = arm
|
|
7716
|
+
|
|
7700
7717
|
params = arm.parameters
|
|
7701
7718
|
|
|
7702
7719
|
if not has_no_post_generation_constraints_or_matches_constraints(post_generation_constraints, params):
|
|
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
|