A programming framework for agentic AI
Update flaml/tune/searcher/search_thread.py
Anonymous-submission-repo7f6e7b3d541c
diff --git a/flaml/tune/searcher/search_thread.py b/flaml/tune/searcher/search_thread.pyindex 6e2cc0986..8f0c160f7 100644--- a/flaml/tune/searcher/search_thread.py+++ b/flaml/tune/searcher/search_thread.py@@ -138,8 +138,7 @@ class SearchThread:self.cost_last = result.get(self.cost_attr, 1)self.cost_total += self.cost_lastif self._search_alg.metric in result and (- not hasattr(self._search_alg, "lexico_objectives")- or self._search_alg.lexico_objectives is None+ getattr(self._search_alg, "lexico_objectives", None) is None):# TODO: Improve this behavior. When lexico_objectives is provided to CFO,# related variables are not callable.