From 9109384dce9dbda58020a9447c8ee9e44b877a19 Mon Sep 17 00:00:00 2001 From: Yuichi Motoyama Date: Mon, 23 Dec 2024 11:11:11 +0900 Subject: [PATCH] self.actions should be ndarray --- physbo/search/discrete_multi/policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physbo/search/discrete_multi/policy.py b/physbo/search/discrete_multi/policy.py index 877201f4..495bcb64 100644 --- a/physbo/search/discrete_multi/policy.py +++ b/physbo/search/discrete_multi/policy.py @@ -58,7 +58,7 @@ def __init__( msg = "ERROR: len(initial_data[0]) != initial_data[1].shape[0]" raise RuntimeError(msg) self.write(actions, fs) - self.actions = sorted(list(set(self.actions) - set(actions))) + self.actions = np.array(sorted(list(set(self.actions) - set(actions)))) if comm is None: self.mpicomm = None