Skip to content

A programming framework for agentic AI

Normalize config in _valid (#42)

Antoni Baumb8736bc600ea
diff --git a/flaml/searcher/blendsearch.py b/flaml/searcher/blendsearch.py
index ae3c6e0ed..61a760d8e 100644
--- a/flaml/searcher/blendsearch.py
+++ b/flaml/searcher/blendsearch.py
@@ -420,9 +420,10 @@ class BlendSearch(Searcher):
def _valid(self, config: Dict) -> bool:
''' config validator
'''
+ normalized_config = self._ls.normalize(config)
for key in self._gs_admissible_min:
if key in config:
- value = config[key]
+ value = normalized_config[key]
# logger.info(
# f"{key},{value},{self._admissible_min[key]},{self._admissible_max[key]}")
if value+self._ls.STEPSIZE<self._gs_admissible_min[