hyperopt has no attribute choice

Created on 31 Mar 2020  路  1Comment  路  Source: hyperopt/hyperopt

Hi.

Trying to follow your intro and I have this issue. What do you think my malfunction is? Any advice is appreciated.

(base) user_name@host_name:/scratch/user_name$ python3 -m  pip install --upgrade hyperopt
Requirement already up-to-date: hyperopt in /home/user_name/anaconda3/lib/python3.7/site-packages (0.2.3)
Requirement already satisfied, skipping upgrade: scipy in /home/user_name/anaconda3/lib/python3.7/site-packages (from hyperopt) (1.2.1)
Requirement already satisfied, skipping upgrade: cloudpickle in /home/user_name/anaconda3/lib/python3.7/site-packages (from hyperopt) (0.8.0)
Requirement already satisfied, skipping upgrade: networkx==2.2 in /home/user_name/anaconda3/lib/python3.7/site-packages (from hyperopt) (2.2)
Requirement already satisfied, skipping upgrade: future in /home/user_name/anaconda3/lib/python3.7/site-packages (from hyperopt) (0.17.1)
Requirement already satisfied, skipping upgrade: tqdm in /home/user_name/anaconda3/lib/python3.7/site-packages (from hyperopt) (4.31.1)
Requirement already satisfied, skipping upgrade: numpy in /home/user_name/anaconda3/lib/python3.7/site-packages (from hyperopt) (1.16.2)
Requirement already satisfied, skipping upgrade: six in /home/user_name/anaconda3/lib/python3.7/site-packages (from hyperopt) (1.12.0)
Requirement already satisfied, skipping upgrade: decorator>=4.3.0 in /home/user_name/anaconda3/lib/python3.7/site-packages (from networkx==2.2->hyperopt) (4.4.0)
(base) user_name@host_name:/scratch/user_name$ python3
Python 3.7.3 (default, Mar 27 2019, 22:11:17) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import hyperopt
>>> hyperopt.choice
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
>>> hyperopt.__version__
'0.2.3'

Most helpful comment

sorry. I read

"from hyperopt import hp"
as
"import hyperopt as hp"

Dont ask me how that is possible! To much numpy...

>All comments

sorry. I read

"from hyperopt import hp"
as
"import hyperopt as hp"

Dont ask me how that is possible! To much numpy...

Was this page helpful?
0 / 5 - 0 ratings