Fix missing typehint in hyper.py
This commit is contained in:
parent
cdd324d0a9
commit
bddec476f9
@ -163,7 +163,7 @@ class HyperStrategyMixin:
|
||||
else:
|
||||
logger.info(f'Strategy Parameter(default): {attr_name} = {attr.value}')
|
||||
|
||||
def get_no_optimize_params(self):
|
||||
def get_no_optimize_params(self) -> Dict[str, Dict]:
|
||||
"""
|
||||
Returns list of Parameters that are not part of the current optimize job
|
||||
"""
|
||||
@ -173,7 +173,7 @@ class HyperStrategyMixin:
|
||||
'protection': {},
|
||||
}
|
||||
for name, p in self.enumerate_parameters():
|
||||
if not p.optimize or not p.in_space:
|
||||
if p.category and (not p.optimize or not p.in_space):
|
||||
params[p.category][name] = p.value
|
||||
return params
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user