You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm running into an error when running SMT in a python 3.12 environment, specifically within the design_space module. The following is a test script I'm using:
And the following is the resulting console output:
___________________________________________________________________________
Kriging
___________________________________________________________________________
Problem size
# training points. : 20
___________________________________________________________________________
Training
Training ...
Traceback (most recent call last):
File "/home/alec.house/local/CFDRC_tools/sage/scratch.py", line 9, in <module>
model.train()
File "/home/alec.house/local/mambaforge/envs/py312/lib/python3.12/site-packages/smt/surrogate_models/surrogate_model.py", line 275, in train
self._train()
File "/home/alec.house/local/mambaforge/envs/py312/lib/python3.12/site-packages/smt/surrogate_models/krg_based.py", line 529, in _train
self._new_train()
File "/home/alec.house/local/mambaforge/envs/py312/lib/python3.12/site-packages/smt/surrogate_models/krg_based.py", line 373, in _new_train
if is_acting is None and not self.is_continuous:
^^^^^^^^^^^^^^^^^^
File "/home/alec.house/local/mambaforge/envs/py312/lib/python3.12/site-packages/smt/surrogate_models/krg_based.py", line 260, in is_continuous
return self.design_space.is_all_cont
^^^^^^^^^^^^^^^^^
File "/home/alec.house/local/mambaforge/envs/py312/lib/python3.12/site-packages/smt/surrogate_models/krg_based.py", line 247, in design_space
self.options["design_space"] = ensure_design_space(
^^^^^^^^^^^^^^^^^^^^
File "/home/alec.house/local/mambaforge/envs/py312/lib/python3.12/site-packages/smt/utils/design_space.py", line 56, in ensure_design_space
return DesignSpace([[np.min(xt) - 0.99, np.max(xt) + 1e-4]] * xt.shape[1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alec.house/local/mambaforge/envs/py312/lib/python3.12/site-packages/smt/utils/design_space.py", line 746, in __init__
cs_vars[name] = UniformFloatHyperparameter(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "ConfigSpace/hyperparameters/uniform_float.pyx", line 62, in ConfigSpace.hyperparameters.uniform_float.UniformFloatHyperparameter.__init__
File "ConfigSpace/hyperparameters/uniform_float.pyx", line 124, in ConfigSpace.hyperparameters.uniform_float.UniformFloatHyperparameter.check_default
TypeError: Expected float, got numpy.float64
For reference, here are the packages currently installed in my environment, which do work with python 3.11.
Yep, ConfigSpace is not ready for Python 3.12. See #575 . The workaround for now is to either uninstall ConfigSpace (but you loose hierachical variables handling feature) or use Python 3.11.
Hi, I'm running into an error when running SMT in a python 3.12 environment, specifically within the
design_space
module. The following is a test script I'm using:And the following is the resulting console output:
For reference, here are the packages currently installed in my environment, which do work with python 3.11.
Anything glaringly obvious? Thanks!
The text was updated successfully, but these errors were encountered: