From 9d57bac5be211d25a5090a8651139f699f863dd2 Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 11 Nov 2023 15:46:23 -0700 Subject: [PATCH] fix: idxs in Trials object shares new_ids --- hyperopt/atpe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperopt/atpe.py b/hyperopt/atpe.py index 7e4a8863..99a3cb39 100644 --- a/hyperopt/atpe.py +++ b/hyperopt/atpe.py @@ -1610,7 +1610,7 @@ def suggest(new_ids, domain, trials, seed): tid=new_id, cmd=domain.cmd, workdir=domain.workdir, - idxs={key: [0] for key in flatParameters}, + idxs={key: [new_id] for key in flatParameters}, vals={key: [flatParameters[key]] for key in flatParameters}, ) ]