Tests improvements (#4616)
Co-authored-by: Kayzwer <68285002+Kayzwer@users.noreply.github.com>
This commit is contained in:
parent
4bd62a299c
commit
896da0c0a0
6 changed files with 19 additions and 15 deletions
|
|
@ -361,7 +361,7 @@ class Model:
|
|||
from .tuner import Tuner
|
||||
|
||||
custom = {} # method defaults
|
||||
args = {**self.overrides, **custom, **kwargs, 'mode': 'export'} # highest priority args on the right
|
||||
args = {**self.overrides, **custom, **kwargs, 'mode': 'train'} # highest priority args on the right
|
||||
return Tuner(args=args, _callbacks=self.callbacks)(model=self.model, iterations=iterations)
|
||||
|
||||
def to(self, device):
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ class Tuner:
|
|||
callbacks.add_integration_callbacks(self)
|
||||
LOGGER.info(f"Initialized Tuner instance with 'tune_dir={self.tune_dir}'.")
|
||||
|
||||
def _mutate(self, parent='single', n=5, mutation=0.8, sigma=0.6, return_best=False):
|
||||
def _mutate(self, parent='single', n=5, mutation=0.8, sigma=0.2, return_best=False):
|
||||
"""
|
||||
Mutates the hyperparameters based on bounds and scaling factors specified in `self.space`.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue