EmuKit / emukit

A Python-based toolbox of various methods in decision making, uncertainty quantification and statistical emulation: multi-fidelity, experimental design, Bayesian optimisation, Bayesian quadrature, etc.
https://emukit.github.io/emukit/
Apache License 2.0
605 stars 128 forks source link

import issue while running examples #441

Closed amirhch closed 1 year ago

amirhch commented 1 year ago

Hello,

I have version 0.4.10 on a clean environment and try to run the example: emukit/emukit/examples/multi_fidelity_dgp/benchmarking_examples.ipynb. I have got the following issue while running the first cell of the file:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[1], line 10
      7 from emukit.examples.multi_fidelity_dgp.baseline_model_wrappers import LinearAutoRegressiveModel, NonLinearAutoRegressiveModel, HighFidelityGp
      9 from emukit.core import ContinuousParameter, ParameterSpace
---> 10 from emukit.core.initial_designs import LatinDesign
     11 from emukit.examples.multi_fidelity_dgp.multi_fidelity_deep_gp import MultiFidelityDeepGP
     13 from emukit.test_functions.multi_fidelity import (multi_fidelity_borehole_function, multi_fidelity_branin_function,
     14                                                   multi_fidelity_park_function, multi_fidelity_hartmann_3d,
     15                                                   multi_fidelity_currin_function)

ImportError: cannot import name 'LatinDesign' from 'emukit.core.initial_designs' ([...\Miniconda3\envs\MF\lib\site-packages\emukit\core\initial_designs\__init__.py]

I wonder if the package is installed properly. I would appreciate it if you could help. Thank you!

apaleyes commented 1 year ago

thanks, the import in that example was incorrect. fixed now!