A programming framework for agentic AI
update
skzhang1184251a2a72e
diff --git a/flaml/tune/searcher/flow2.py b/flaml/tune/searcher/flow2.pyindex e656c317a..035e3d868 100644--- a/flaml/tune/searcher/flow2.py+++ b/flaml/tune/searcher/flow2.py@@ -392,10 +392,8 @@ class FLOW2(Searcher):feasible_index_filter = np.where(feasible_value<= max(- [- tolerance_bound,- self.lexico_objectives["targets"][k_metric],- ]+ tolerance_bound,+ self.lexico_objectives["targets"][k_metric],))[0]feasible_index = feasible_index.take(feasible_index_filter)@@ -439,13 +437,11 @@ class FLOW2(Searcher):)))- if (result[k_metric] < max([tolerance_bound, k_target])) and (+ if (result[k_metric] < max(tolerance_bound, k_target)) and (self.best_obj[k_metric]< max(- [- tolerance_bound,- k_target,- ]+ tolerance_bound,+ k_target,)):continuediff --git a/test/tune/test_lexiflow.py b/test/tune/test_lexiflow.pyindex c366421ee..cad772af7 100644--- a/test/tune/test_lexiflow.py+++ b/test/tune/test_lexiflow.py@@ -145,7 +145,7 @@ def test_lexiflow():lexico_objectives["targets"] = {"error_rate": 0.0, "flops": 0.0}lexico_objectives["modes"] = ["min", "min"]- # 1. lexico tune: absoute tune+ # 1. lexico tune: absolute tolerancelexico_objectives["tolerances"] = {"error_rate": 0.02, "flops": 0.0}analysis = tune.run(evaluate_function,