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

cannot import name 'RandomDesign' #341

Closed cyxomo closed 3 years ago

cyxomo commented 3 years ago

I noticed that the issue 'RandomDesign' was still not fixed in version 0.4.7

/>>> from emukit.experimental_design import RandomDesign Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name 'RandomDesign' However,in #310 , I see it has been solved I was so confused

I installed emukit through pip pip install emukit

cyxomo commented 3 years ago

The version 0.4.6 is all right if version was updated to 0.4.7 ,'RandomDesign' could not be found

apaleyes commented 3 years ago

It is fixed, but in a different way! Random was moved to a different package, please use

from emukit.core.initial_designs import RandomDesign

I've updated the original issue to clarify that too