scikit-optimize
scikit-optimize copied to clipboard
Bug Latin Hypercube sampling
If i run the Latin Hypercube sampling with the basic lines of code:
from skopt.sampler import Lhs
from skopt.space import Space
space = Space([(1,2),(3,4)])
lhs = Lhs(criterion="maximin", iterations=10000)
initial_population = lhs.generate(space.dimensions, 5)
I run into the error
Traceback (most recent call last):
File "np.int
was a deprecated alias for the builtin int
. To avoid this error in existing code, use int
by itself. Doing this will not modify any behavior and is safe. When replacing np.int
, you may wish to use e.g. np.int64
or np.int32
to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'inf'?
This is fixed when commenting out 197 - 321 in the init.py file. Maybe you can fix that