Update flaml/tune/searcher/flow2.py

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
This commit is contained in:
Anonymous-submission-repo 2022-10-14 22:57:57 -04:00 committed by GitHub
parent 6df7782c5e
commit 608c6bafdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"],