HEBO icon indicating copy to clipboard operation
HEBO copied to clipboard

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

Open bouthilx opened this issue 2 years ago • 2 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

bouthilx avatar Aug 01 '22 19:08 bouthilx

Indeed, pymoo==0.6.0 causes import issues

julioasotodv avatar Sep 05 '22 09:09 julioasotodv

the same problems with me

LXlearning avatar Sep 13 '22 13:09 LXlearning

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

gengjun avatar Nov 23 '22 21:11 gengjun

I may have a fix here: https://github.com/huawei-noah/HEBO/pull/35

gengjun avatar Dec 05 '22 17:12 gengjun

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

bouthilx avatar Dec 21 '22 16:12 bouthilx

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

AntGro avatar May 11 '23 12:05 AntGro