HunterMcGushion / hyperparameter_hunter

Easy hyperparameter optimization and automatic result saving across machine learning algorithms and libraries
MIT License
704 stars 100 forks source link

ImportError: cannot import name 'Log10' #216

Open bhishanpdl opened 3 years ago

bhishanpdl commented 3 years ago

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

astro-jingtao commented 3 years ago

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