diff --git a/flaml/tune/searcher/flow2.py b/flaml/tune/searcher/flow2.py index 397a70be5..0ce79280d 100644 --- a/flaml/tune/searcher/flow2.py +++ b/flaml/tune/searcher/flow2.py @@ -412,7 +412,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"],