[SQUASH] Add a way to temporarily disable a parameter (excludes from parameter loading/hyperopt) and print parameter values when executed.

This commit is contained in:
Rokas Kupstys
2021-03-26 14:25:49 +02:00
parent bbe6ece38d
commit 40f5c7853e
2 changed files with 25 additions and 10 deletions

View File

@@ -51,7 +51,8 @@ class HyperOptAuto(IHyperOpt):
def _generate_indicator_space(self, category):
for attr_name, attr in self.strategy.enumerate_parameters(category):
yield attr.get_space(attr_name)
if attr.enabled:
yield attr.get_space(attr_name)
def _get_indicator_space(self, category, fallback_method_name):
indicator_space = list(self._generate_indicator_space(category))