Skip to content

A programming framework for agentic AI

Update flaml/tune/searcher/flow2.py

Anonymous-submission-repo10d36dcc7bbc
diff --git a/flaml/tune/searcher/flow2.py b/flaml/tune/searcher/flow2.py
index 0ce79280d..596c102d9 100644
--- a/flaml/tune/searcher/flow2.py
+++ b/flaml/tune/searcher/flow2.py
@@ -478,7 +478,7 @@ class FLOW2(Searcher):
if obj:
obj = (
{
- k: obj[k] * -1 if m == "max" else obj[k]
+ k: -obj[k] if m == "max" else obj[k]
for k, m in zip(
self.lexico_objectives["metrics"],
self.lexico_objectives["modes"],