hyperparameter_hunter icon indicating copy to clipboard operation
hyperparameter_hunter copied to clipboard

ImportError: cannot import name 'Log10'

Open bhishanpdl opened this issue 4 years ago • 1 comments

I was wondering how to install the module. I create a new notebook in google colab but it fails to install. It has problem with skopt module. I tried to install locally in my laptop with minconda3 and python3.7 and 3.8 but both of them gave the same error. How to fix the error?

!pip install hyperparameter-hunter
from hyperparameter_hunter import Environment, CVExperiment

Error

ImportError                               Traceback (most recent call last)
<ipython-input-2-ab18e45cc9ba> in <module>()
----> 1 from hyperparameter_hunter import Environment, CVExperiment

3 frames
/usr/local/lib/python3.6/dist-packages/hyperparameter_hunter/space/dimensions.py in <module>()
     38 from scipy.stats.distributions import randint, rv_discrete, uniform
     39 from sklearn.utils import check_random_state
---> 40 from skopt.space.transformers import CategoricalEncoder, Normalize, Identity, Log10, Pipeline
     41 from skopt.space.transformers import Transformer
     42 

ImportError: cannot import name 'Log10'

Further Note

  • I also tried to install in my miniconda environment, it always gave the same error.
  • I tried miniconda3 with python 3.7 and 3.8 with hyperparameter-hunter3.0 but both of them failed.

bhishanpdl avatar Dec 29 '20 16:12 bhishanpdl

The 'Log10' in 'skopt' chaged to 'LogN'. Replace all 'Log10' with 'LogN' in hyperparameter_hunter/space/dimensions.py will fix this problem.

astro-jingtao avatar Apr 01 '21 07:04 astro-jingtao