Skip to content

Commit 83c4043

Browse files
committed
Adjusted costfunc_kwargs defaults
1 parent 6e61fd6 commit 83c4043

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel_tuner/strategies/wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class OptAlg(ABC):
1111
"""Base class for user-defined optimization algorithms."""
1212

1313
def __init__(self):
14-
self.costfunc_kwargs = {"scaling": True, "snap": True}
14+
self.costfunc_kwargs = {"scaling": False, "snap": False}
1515

1616
@abstractmethod
1717
def __call__(self, func: CostFunc, searchspace: Searchspace) -> tuple[tuple, float]:
@@ -36,7 +36,7 @@ def __init__(self, optimizer: OptAlg):
3636
def tune(self, searchspace: Searchspace, runner, tuning_options):
3737
cost_func = CostFunc(searchspace, tuning_options, runner, **self.optimizer.costfunc_kwargs)
3838

39-
if self.optimizer.costfunc_kwargs.get('scaling', True):
39+
if self.optimizer.costfunc_kwargs.get('scaling', False):
4040
# Initialize costfunc for scaling
4141
cost_func.get_bounds_x0_eps()
4242

0 commit comments

Comments
 (0)