Skip to content

Commit da4fa97

Browse files
committed
Remove tuning_options from base_hillclimb
1 parent 6d09ca6 commit da4fa97

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

kernel_tuner/strategies/greedy_ils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def tune(searchspace: Searchspace, runner, tuning_options):
3838
last_improvement = 0
3939
while fevals < max_fevals:
4040
try:
41-
candidate = base_hillclimb(candidate, neighbor, max_fevals, searchspace, tuning_options, cost_func, restart=restart, randomize=True)
41+
candidate = base_hillclimb(candidate, neighbor, max_fevals, searchspace, cost_func, restart=restart, randomize=True)
4242
new_score = cost_func(candidate, check_restrictions=False)
4343
except StopCriterionReached as e:
4444
if tuning_options.verbose:

kernel_tuner/strategies/greedy_mls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def tune(searchspace: Searchspace, runner, tuning_options):
2929
#while searching
3030
while fevals < max_fevals:
3131
try:
32-
base_hillclimb(candidate, neighbor, max_fevals, searchspace, tuning_options, cost_func, restart=restart, randomize=randomize, order=order)
32+
base_hillclimb(candidate, neighbor, max_fevals, searchspace, cost_func, restart=restart, randomize=randomize, order=order)
3333
except StopCriterionReached as e:
3434
if tuning_options.verbose:
3535
print(e)

kernel_tuner/strategies/hillclimbers.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from kernel_tuner.strategies.common import CostFunc
55

66

7-
def base_hillclimb(base_sol: tuple, neighbor_method: str, max_fevals: int, searchspace: Searchspace, tuning_options,
7+
def base_hillclimb(base_sol: tuple, neighbor_method: str, max_fevals: int, searchspace: Searchspace,
88
cost_func: CostFunc, restart=True, randomize=True, order=None):
99
"""Hillclimbing search until max_fevals is reached or no improvement is found.
1010
@@ -25,10 +25,6 @@ def base_hillclimb(base_sol: tuple, neighbor_method: str, max_fevals: int, searc
2525
:params searchspace: The searchspace object.
2626
:type searchspace: Seachspace
2727
28-
:param tuning_options: A dictionary with all options regarding the tuning
29-
process.
30-
:type tuning_options: dict
31-
3228
:param cost_func: An instance of `kernel_tuner.strategies.common.CostFunc`
3329
:type runner: kernel_tuner.strategies.common.CostFunc
3430

0 commit comments

Comments
 (0)