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

Some code snippets in tutorials are broken #310

Closed mmahsereci closed 4 years ago

mmahsereci commented 4 years ago

Note that the Bayesian Optimization tutorial still refers to model_free, i.e. the line:

from emukit.experimental_design.model_free.random_design import RandomDesign

which leads to the following error when copy/pasting the sample code:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-28-32962e6ab93a> in <module>
----> 1 from emukit.experimental_design.model_free.random_design import RandomDesign
      2 from GPy.models import GPRegression
      3 from emukit.model_wrappers import GPyModelWrapper
      4 
      5 design = RandomDesign(parameter_space) # Collect random points

ModuleNotFoundError: No module named 'emukit.experimental_design.model_free'

Originally posted by @tdiethe in https://github.com/amzn/emukit/issues/219#issuecomment-656271472

apaleyes commented 4 years ago

Fixed!

apaleyes commented 3 years ago

Update: new way to import Random is

from emukit.core.initial_designs import RandomDesign

that's how the linked tutorial now does it too