From 4962d3da15b12bc4ecba3242a252c51146f82b7a Mon Sep 17 00:00:00 2001 From: Paul-Saves Date: Fri, 24 Nov 2023 16:30:14 +0100 Subject: [PATCH] fix design space without ConfigSpace --- smt/utils/design_space.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/smt/utils/design_space.py b/smt/utils/design_space.py index b03ee0e0b..3b9458d89 100644 --- a/smt/utils/design_space.py +++ b/smt/utils/design_space.py @@ -887,10 +887,9 @@ def _is_conditionally_acting(self) -> np.ndarray: def _correct_get_acting(self, x: np.ndarray) -> Tuple[np.ndarray, np.ndarray]: """Correct and impute design vectors""" - + x = x.astype(float) if self._cs is not None: # Normalize value according to what ConfigSpace expects - x = x.astype(float) self._normalize_x(x) # Get corrected Configuration objects by mapping our design vectors to the ordering of the ConfigurationSpace