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

Fix code that triggered numpy warnings #394

Closed apaleyes closed 2 years ago

apaleyes commented 2 years ago

Issue #, if available: #302

Description of changes: Updated some code that was causing deprecation warnings.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov-commenter commented 2 years ago

Codecov Report

Merging #394 (7c060a3) into main (6a1ece0) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #394   +/-   ##
=======================================
  Coverage   89.01%   89.01%           
=======================================
  Files         128      128           
  Lines        4244     4244           
  Branches      609      609           
=======================================
  Hits         3778     3778           
  Misses        369      369           
  Partials       97       97           
Impacted Files Coverage Δ
emukit/core/bandit_parameter.py 68.47% <100.00%> (ø)
...optimization/local_search_acquisition_optimizer.py 92.94% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6a1ece0...7c060a3. Read the comment docs.