Skip to content

Commit

Permalink
fix design space without ConfigSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Saves committed Nov 24, 2023
1 parent 141b82e commit 4962d3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions smt/utils/design_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4962d3d

Please sign in to comment.