huawei-noah / HEBO

Bayesian optimisation & Reinforcement Learning library developped by Huawei Noah's Ark Lab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mixed_variable_operator was removed from pymoo.operators in v0.6.0.

bouthilx opened this issue · comments

Since release v0.6.0 of pymoo yesterday (https://github.com/anyoptimization/pymoo/releases/tag/0.6.0), HEBO's acq_optimizers fail to import because of an ImportError during the module's own imports:

  tests/unittests/algo/long/hebo/test_hebo.py:9: in <module>
      from hebo.models.model_factory import model_dict
  .tox/algo/lib/python3.7/site-packages/hebo/__init__.py:10: in <module>
      from . import acq_optimizers
  .tox/algo/lib/python3.7/site-packages/hebo/acq_optimizers/__init__.py:10: in <module>
      from . import evolution_optimizer
  .tox/algo/lib/python3.7/site-packages/hebo/acq_optimizers/evolution_optimizer.py:15: in <module>
      from pymoo.operators.mixed_variable_operator import MixedVariableMutation, MixedVariableCrossover

Indeed, pymoo==0.6.0 causes import issues

the same problems with me

same here, also pymoo 0.5.0 only support up to python 3.8, so for python 3.9 and 3.10, there's no way to use hebo

I may have a fix here: #35

Latest numpy release does not contain numpy.object anymore, which is now causing even pymoo==0.5.0 to fail.

This should be fixed with the upgrade to v0.3.5.