diff --git a/entmoot/problem_config.py b/entmoot/problem_config.py index 78a214a..f7b180c 100644 --- a/entmoot/problem_config.py +++ b/entmoot/problem_config.py @@ -284,10 +284,11 @@ def add_feature( if name is None: name = f"feat_{len(self.feat_list)}" + if feat_type == "binary": + self._feat_list.append(Binary(name=name)) + return + if bounds is None: - if feat_type == "binary": - self._feat_list.append(Binary(name=name)) - return raise ValueError( "Please provide bounds for feature types in '(real, integer, categorical)'" )