Skip to content

Commit 063fe97

Browse files
committed
Merge branch 'hyperparametertuning' of https://github.com/KernelTuner/kernel_tuner into hyperparametertuning
2 parents 1f935a1 + 496af94 commit 063fe97

File tree

7 files changed

+11
-1240
lines changed

7 files changed

+11
-1240
lines changed

kernel_tuner/backends/hypertuner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818

1919
class ScoreObserver(BenchmarkObserver):
20+
"""BenchmarkObserver subclass for registering the hyperparameter tuning score."""
21+
2022
def __init__(self, dev):
2123
self.dev = dev
2224
self.scores = []

kernel_tuner/python.py

Lines changed: 0 additions & 399 deletions
This file was deleted.

kernel_tuner/searchspace.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,5 +1017,4 @@ def to_ax_searchspace(self):
10171017
raise NotImplementedError(
10181018
"Conversion to Ax SearchSpace has not been fully implemented as Ax Searchspaces can't capture full complexity."
10191019
)
1020-
1021-
return ax_searchspace
1020+
# return ax_searchspace

kernel_tuner/strategies/bayes_opt.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -860,10 +860,8 @@ def __optimize_multi_ultrafast(self, max_fevals, predict_eval_ratio=5):
860860
while self.fevals < max_fevals:
861861
aqfs = self.multi_afs
862862
# if we take the prediction only once, we want to go from most exploiting to most exploring, because the more exploiting an AF is, the more it relies on non-stale information from the model
863-
if (
864-
last_prediction_time * predict_eval_ratio <= last_eval_time
865-
or last_prediction_counter >= predict_eval_ratio
866-
):
863+
fit_observations = last_prediction_time * predict_eval_ratio <= last_eval_time or last_prediction_counter >= predict_eval_ratio
864+
if fit_observations:
867865
last_prediction_counter = 0
868866
pred_start = time.perf_counter()
869867
if last_eval_time > 0.0:

kernel_tuner/strategies/bayes_opt_old.py

Lines changed: 0 additions & 833 deletions
This file was deleted.

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ classifiers = [
4141
"Topic :: Scientific/Engineering",
4242
"Topic :: Software Development",
4343
"Topic :: System :: Distributed Computing",
44+
"Programming Language :: Python :: 3.10",
45+
"Programming Language :: Python :: 3.11",
46+
"Programming Language :: Python :: 3.12",
47+
"Programming Language :: Python :: 3.13"
4448
]
4549

4650
# ATTENTION: if anything is changed here, run `poetry update`

test/strategies/test_strategies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def vector_add():
4141
# skip some strategies if their dependencies are not installed
4242
strategies = []
4343
for s in strategy_map.keys():
44-
if 'gpytorch' in s.lower() or 'botorch_alt' in s.lower() or 'bayes_opt_old' in s.lower():
45-
continue
44+
if 'gpytorch' in s.lower() or 'botorch_alt' in s.lower():
45+
continue # TODO issue warning for uninstalled dependencies?
4646
if 'gpytorch' in s.lower():
4747
strategies.append(pytest.param(s, marks=skip_if_no_bayesopt_gpytorch))
4848
elif 'botorch' in s.lower():

0 commit comments

Comments
 (0)