omniopt2 8423__tar.gz → 8424__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-8423 → omniopt2-8424}/.tpe.py +3 -2
- {omniopt2-8423 → omniopt2-8424}/PKG-INFO +1 -1
- {omniopt2-8423 → omniopt2-8424}/omniopt2.egg-info/PKG-INFO +1 -1
- {omniopt2-8423 → omniopt2-8424}/pyproject.toml +1 -1
- {omniopt2-8423 → omniopt2-8424}/.colorfunctions.sh +0 -0
- {omniopt2-8423 → omniopt2-8424}/.dockerignore +0 -0
- {omniopt2-8423 → omniopt2-8424}/.general.sh +0 -0
- {omniopt2-8423 → omniopt2-8424}/.gitignore +0 -0
- {omniopt2-8423 → omniopt2-8424}/.helpers.py +0 -0
- {omniopt2-8423 → omniopt2-8424}/.omniopt.py +0 -0
- {omniopt2-8423 → omniopt2-8424}/.omniopt_plot_cpu_ram_usage.py +0 -0
- {omniopt2-8423 → omniopt2-8424}/.omniopt_plot_general.py +0 -0
- {omniopt2-8423 → omniopt2-8424}/.omniopt_plot_gpu_usage.py +0 -0
- {omniopt2-8423 → omniopt2-8424}/.omniopt_plot_kde.py +0 -0
- {omniopt2-8423 → omniopt2-8424}/.omniopt_plot_scatter.py +0 -0
- {omniopt2-8423 → omniopt2-8424}/.omniopt_plot_scatter_generation_method.py +0 -0
- {omniopt2-8423 → omniopt2-8424}/.omniopt_plot_scatter_hex.py +0 -0
- {omniopt2-8423 → omniopt2-8424}/.omniopt_plot_time_and_exit_code.py +0 -0
- {omniopt2-8423 → omniopt2-8424}/.omniopt_plot_trial_index_result.py +0 -0
- {omniopt2-8423 → omniopt2-8424}/.omniopt_plot_worker.py +0 -0
- {omniopt2-8423 → omniopt2-8424}/.random_generator.py +0 -0
- {omniopt2-8423 → omniopt2-8424}/.shellscript_functions +0 -0
- {omniopt2-8423 → omniopt2-8424}/.tests/pylint.rc +0 -0
- {omniopt2-8423 → omniopt2-8424}/LICENSE +0 -0
- {omniopt2-8423 → omniopt2-8424}/MANIFEST.in +0 -0
- {omniopt2-8423 → omniopt2-8424}/README.md +0 -0
- {omniopt2-8423 → omniopt2-8424}/apt-dependencies.txt +0 -0
- {omniopt2-8423 → omniopt2-8424}/omniopt +0 -0
- {omniopt2-8423 → omniopt2-8424}/omniopt2.egg-info/SOURCES.txt +0 -0
- {omniopt2-8423 → omniopt2-8424}/omniopt2.egg-info/dependency_links.txt +0 -0
- {omniopt2-8423 → omniopt2-8424}/omniopt2.egg-info/requires.txt +0 -0
- {omniopt2-8423 → omniopt2-8424}/omniopt2.egg-info/top_level.txt +0 -0
- {omniopt2-8423 → omniopt2-8424}/omniopt_docker +0 -0
- {omniopt2-8423 → omniopt2-8424}/omniopt_evaluate +0 -0
- {omniopt2-8423 → omniopt2-8424}/omniopt_plot +0 -0
- {omniopt2-8423 → omniopt2-8424}/omniopt_share +0 -0
- {omniopt2-8423 → omniopt2-8424}/requirements.txt +0 -0
- {omniopt2-8423 → omniopt2-8424}/setup.cfg +0 -0
- {omniopt2-8423 → omniopt2-8424}/setup.py +0 -0
- {omniopt2-8423 → omniopt2-8424}/test_requirements.txt +0 -0
|
@@ -2,7 +2,8 @@ import sys
|
|
|
2
2
|
import os
|
|
3
3
|
import json
|
|
4
4
|
import logging
|
|
5
|
-
from typing import Optional
|
|
5
|
+
from typing import Optional, Any
|
|
6
|
+
|
|
6
7
|
try:
|
|
7
8
|
import optuna
|
|
8
9
|
from optuna.trial import create_trial
|
|
@@ -162,7 +163,7 @@ def add_existing_trial_to_study(study: optuna.study.study.Study, trial_entry: li
|
|
|
162
163
|
)
|
|
163
164
|
|
|
164
165
|
@beartype
|
|
165
|
-
def get_best_or_new_point(study:
|
|
166
|
+
def get_best_or_new_point(study: Any, parameters: dict, direction: str) -> dict:
|
|
166
167
|
best_trial_value = study.best_trial.value
|
|
167
168
|
if best_trial_value is not None:
|
|
168
169
|
if (direction == "minimize" and best_trial_value < 1e6) or \
|
|
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
|