bayesian-optimization / BayesianOptimization

A Python implementation of global optimization with gaussian processes.
https://bayesian-optimization.github.io/BayesianOptimization/index.html
MIT License
7.95k stars 1.55k forks source link

cannot import acquisition #517

Closed cnsolari closed 2 months ago

cnsolari commented 2 months ago

I tried to install using pip install bayesian-optimization

i can run basic optimization, but i have issues to using acquisition function. Any advice to help?

from bayes_opt import acquisition

ImportError: cannot import name 'acquisition' from 'bayes_opt' (c:\pyve\py39env\lib\site-packages\bayes_opt\__init__.py)

Here's what i have in 'init.py', i dont see the same as you have in your git hub

__all__ = [
    "BayesianOptimization",
    "ConstraintModel",
    "UtilityFunction",
    "Events",
    "ScreenLogger",
    "JSONLogger",
    "SequentialDomainReductionTransformer",
]
till-m commented 2 months ago

Hi @cnsolari, see issue #500. Apologies for the inconvenience.